Timage problem
Posted: Thu Jan 10, 2008 8:11 pm
Hi,
The following code :
oClipboard := TClipboard():New( CF_BITMAP )
hBitmap := oClipboard:GetBitmap()
oClipboard:End()
if hBitmap != 0
cimagemp := unicof(".jpg")
oimg:cResname:=nil
oimg:LoadFromClipboard()
oimg:refresh()
everything ok here
if !oimg:SaveImage(cimagemp,2) //0 = bmp 2 = jpg
it never saves the image to afile.
Any ideas ?
Antonio
The following code :
oClipboard := TClipboard():New( CF_BITMAP )
hBitmap := oClipboard:GetBitmap()
oClipboard:End()
if hBitmap != 0
cimagemp := unicof(".jpg")
oimg:cResname:=nil
oimg:LoadFromClipboard()
oimg:refresh()
everything ok here
if !oimg:SaveImage(cimagemp,2) //0 = bmp 2 = jpg
it never saves the image to afile.
Any ideas ?
Antonio