Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clipboard conversion
#11
ok, i must recode Save2 to:

Member function GdipImage.Save2
Code:
Copy      Help
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?


Messages In This Thread

Forum Jump:


Users browsing this thread: 8 Guest(s)