From: Andreas on
Hello !

i call the following function which retrieves a region of interest from the specified image at the specified position and resolution in 24-bit BGR format as buffer.

[a b c d e f] = calllib('lib','GetImageData',pathptr,xCenter,yCenter,zCenter,zoomf,o_physwptr,o_physhptr,imgBuffptr,buffSizeptr);

pathptr Filename of the image to use
imgBuffptr User supplied buffer to receive the image data
-------------------------------------------------------------------------------------
io_nBufferSize Size of the user supplied buffer (if the supplied buffer is
too small then this is updated to reflect the required size
and no data is copied)

the libfunctionsview tells me the following:
[long, voidPtr, voidPtr, voidPtr, voidPtr, longPtr] GetImageData (voidPtr, long, long, long, single, voidPtr, voidPtr, voidPtr, longPtr)

my question is:

How can i store the data from the image buffer (imgBuffptr) as an image? or how can i display the image whos data is stored in the image buffer? or how do i convert this data from the buffer to propper image data?

thx in advance!