Page 3 of 3
Re: bmpfromico
Posted: Thu Jul 16, 2015 3:28 pm
by Silvio.Falconi
Strange very Strange
the test run ok
When I put the source on my application it not run good but i see the image not clear
Re: bmpfromico
Posted: Thu Jul 16, 2015 4:46 pm
by Silvio.Falconi
I re-write all and now run ok
thanks Manuel!!!!
Re: bmpfromico
Posted: Mon Jan 08, 2018 9:08 pm
by Silvio.Falconi
Perhaps there is an error on new gdiplus.cpp because if I recompile with it and I use these functions
ico := ICON_EXEREAD( cFile, 4 )
GDIBmpFromHIcon( ico, oImagePreview, oImagePreview:Super():nWidth(), oImagePreview:Super():nHeight() )
DestroyIcon( ico )
Function GDIBmpFromHIcon( hIcon , oImagePreview , nWidth, nHeight )
Local hBmp
local ogbmp := GdiBmp():new()
ogbmp:hBmp:= GDIPLUSIMAGEFROMICO( hicon )
ogbmp:save( "icono.png") // is posible png,jpg,bmp,tif
oImagePreview:SetSource("icono.png" )
Return nil
Now I see this