ImageMan ActiveX
Loading Images from Memory

Images in any supported format can be loaded from memory using the hImageData and ImageDataSize properties. The Image data must be located in a globally allocated memory block. To load the image the ImageDataSize property must be set to the size of the image data in the block and then the hImageData property must be set to the handle of the memory block containing the image data. When the handle is assigned the control will make a copy of the image and the memory block can be discarded by the application.


Once an image is loaded to memory, GetRow and SetRow allow you to access the image bits directly as an array, providing the ability to do custom filtering, determine if an image is predominantly white or black, or any function that you might do with the image data.




© 2014 Data Techniques, Inc. All rights reserved.

Submit feedback on this topic