News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

image from memory

Started by mariø, April 26, 2005, 12:48:24 PM

Previous topic - Next topic

mariø

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.

pbrennick

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

mariø

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??

Vortex