
new function to save gif files...
GDIPLUSSAVEOCTREEGIF( hbmp, cNameFile )
hbmp -> pointer to gdi+ image
cNamefile-> name to save ( with extension .gif ) pass -> ansitowide( "c:\myfile.gif" )
sample :
Code: Select all | Expand
function saveImgfile(cFile )
local ohBmp := GDIBmp():new(cFile)
local cSave:= cGetfile("graba","*.*")
cSave:= alltrim(cSave)
if Upper(right(cSsave,3)) == "GIF"
GDIPLUSSAVEOCTREEGIF( ohbmp:hbmp, cSave )
else
ohbmp:save(cSave )
endif
ohbmp:end()
Return nil
report their results in the test...