LoadBuffer method (ILEADRasterIO)
short LoadBuffer(ILEADRaster *pRaster, long lBufferAddress, short iBitsPerPixel, long lPage, long lPages, long lSize); | |
Overview |
Refer to Using Memory-Resident Image Files. |
Remarks
Loads an image from a file that is stored in memory. The ‘lBufferAddress’ is the address of the memory buffer. The file can be in any supported image file format and bits per pixel, whether compressed or uncompressed.
For supported formats, refer to Summary of All Supported Image File Formats.
Support for 12 and 16-bit grayscale images is available only in the Document/Medical toolkits.
For a list of available products, refer to Topic Selection.
To load an image from a file in memory, use one of the following methods:
LoadMemory—use this if you have a global handle to the file in memory
LoadArray—use this if you have a VARIANT byte array that contains the file in memory
LoadBuffer—use this if you have the address of a memory location that contains the file in memory
To save an image to a memory file, use one of the following methods:
SaveMemory—returns a global handle to a file in memory
SaveArray—returns a VARIANT byte array that contains the file in memory
SaveBuffer—saves a file into a memory location that the user allocates
See Also