Page 1 of 1
Avatar
Posted: Mon Jan 18, 2021 10:48 am
by Natter
Hi,
On sites, often, there is a round avatar of the user. Is it possible to create a similar one to FW ?
Re: Avatar
Posted: Tue Jan 19, 2021 3:49 am
by nageswaragunupudi
Code: Select all
function RoundImage()
local hBmp, cSave := "olga1.bmp"
hBmp := FW_MakeYourBitmap( 450, 450, <|hDC|
FW_DrawImage( hDC, "c:\fwh\bitmaps\olga1.jpg", { 0,0,450,450 },,"C" ) //,,,"TL" )
return nil
>, .T. )
? nBmpWidth( hBmp ), nBmpHeight( hBmp )
FW_SaveImage( hBmp, "c:\fwh\bitmaps\olga_round.png" )
DeleteObject( hBmp )
ximage( "c:\fwh\bitmaps\olga_round.png" ) // test the result
return nil
Re: Avatar
Posted: Tue Jan 19, 2021 9:59 am
by Natter
Thanks !