Enrico Maria Giordano wrote:Probably I'm doing something wrong but it doesn't work (GIFs are still bad rendered).
EMG
With what control are you testing?
Enrico Maria Giordano wrote:Probably I'm doing something wrong but it doesn't work (GIFs are still bad rendered).
EMG
function testgif()
local cFile := "c:\fwh\gifs\magic10.gif"
local hBmp, oWnd
hBmp := GDIP_IMAGEFROMFILE( cFile, .t. )
DEFINE WINDOW oWnd
ACTIVATE WINDOW oWnd CENTERED ON PAINT oWnd:SayPalBmp( hBmp )
DeleteObject( hBmp )
return nil
function magicbmp()
local oDlg, aBmp
local cFile := "c:\fwh\bitmaps\magic.bmp"
DEFINE DIALOG oDlg SIZE 800,600 PIXEL
aBmp := oDlg:ReadPalBmpEx( cFile )
ACTIVATE DIALOG oDlg ON PAINT ;
oDlg:SayPalBmp( aBmp, ;
nil, ; // Default full client Rect
.f., ; // transparency
.t. ) // Stretch full ( .f. or nil -> centers image )
return nil
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL cSrcImage := "c:\fwh\bitmaps\magic.bmp"
LOCAL cDstImage := "magic.gif"
LOCAL oGdi := GDIBmp():New( cSrcImage )
oGdi:Save( cDstImage )
oGdi:End()
RETURN NIL
Enrico Maria Giordano wrote:Rao,
ok for the quality issue. But saving to GIF still give bad result:
- Code: Select all Expand view RUN
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL cSrcImage := "c:\fwh\bitmaps\magic.bmp"
LOCAL cDstImage := "magic.gif"
LOCAL oGdi := GDIBmp():New( cSrcImage )
oGdi:Save( cDstImage )
oGdi:End()
RETURN NIL
EMG
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 48 guests