Hi to all.
I would like to save the Thumb created with CreateThumbnail in a byte array.
With this Test code I can save the Thumb Pic to disk:
Dim ID1 As Long
Dim ID2 As Long
Dim myPic() As Byte
Dim picLen As Long
dim tmp as long
ID1 = Imaging1.CreateImageFromHwnd(GdViewer1.hwnd)
ID2 = Imaging1.CreateThumbnail(ID1, 180, 144)
'Using :
'tmp=Imaging1.SaveAsByteArray(myPic(), picLen, "png")
'I can't save the Thumb to ByteArray
Dim oPicture As StdPicture
Set oPicture = Imaging1.GetPictureFromGdPictureImage(ID2)
SavePicture oPicture, App.Path & "\Test.bmp"
'clean Up
DeletePictureObject oPicture
Set oPicture = Nothing
Call Imaging1.CloseImage(ID1)
Call Imaging1.CloseImage(ID2)
My question is:
How I can save the Thumb Pic to ByteArray and then assign again the ByteArray back to the StdPicture without save to disk?
Best Regards
Nanni
