IPictureDisp to byte array
COM
4
Posts
3
Posters
0
Views
1
Watching
-
how to convert IPictureDisp* to byte array
VIBIN "Fool's run away,where angle's fear to tread"
One way would be to render it into a bitmap created using the CreateDIBSection[^] function. You could also try looking at the GetDIBits[^] function. With both of these you use the handle returned by the
get_Handle
method.Steve
-
how to convert IPictureDisp* to byte array
VIBIN "Fool's run away,where angle's fear to tread"
-
As a rule, the object implemented IPictureDisp implements also IPersist**** interface (IPersistStream, seems) which can help you.
With best wishes, Vita
That's an interesting suggestion, but if the implementation persists the image (say a compressed .jpg) as a compressed .jpeg you haven't got yourself a ready-to-use byte-array.
Steve