LoadBuffer method (Main Control)

Visual Basic example
Visual C++ 5.0 example

Syntax short LoadBuffer (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.

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

Elements:  SaveBuffer method, SaveBufferSize property, SaveBufferAddress property, EnableSaveBufferEvent property, SaveBuffer event, Load method, LoadStamp method, BitmapDataPath property, StartFeedLoad method, LoadInfo event, EnableProgressEvent property, SetLoadResolution method, PCDResolution property, LoadArray method, LoadMemory method, SaveArray method, SaveMemory method

Topics:  Raster Images: Loading Files