I have a jpeg image file in memory as an array. How can I Show this image in a picture control?
I have read some about doing this with OleLoadPicture, but I don´t know how to use it.
mariø,
BitmapFromMemory.ASM does what you need. It is in \masm32\m32lib and is a part of the masm32 library. It was written by Ernest Murphy. There are some other routines in that directory that you might find useful, also.
Paul
BitmapFromMemory.ASM seems to be what I need, but I couldn't make any working example using this.
My Idea is to export BitmapFromMemory in a dll, but inside this function, the first call to OleLoadPicture dont fill the pPicture param...
has somebody a example of the use of this function??
Hi mariø,
Here is an example of BitmapFromFile
http://www.masmforum.com/simple/index.php?topic=937.0