11-13-2013, 12:12 PM
ok, i must recode Save2 to:
Member function GdipImage.Save2
and last one : how to copy a jpeg GdipBitmap to clipboard?
Member function GdipImage.Save2
function! $imageFile GDIP.EncoderParameters&p
;Saves this image to file.
;Supported formats: BMP, GIF, JPEG, PNG, TIFF.
;Returns 1 on success, 0 if failed.
;Cannot save to the same file from which FromFile'ed.
str s1.GetFilenameExt(imageFile)
sel(s1) case "jpg" s1="jpeg"; case "tif" s1="tiff"
s1-"image/"
GUID clsEncoder
if(!__GdipGetEncoderClsid(s1 clsEncoder)) ret
_hresult=GDIP.GdipSaveImageToFile(m_i @s1.expandpath(imageFile) &clsEncoder &p)
ret !_hresult
and last one : how to copy a jpeg GdipBitmap to clipboard?