Accusoft ImagXpress 13
LoadBufferPtr Method
An unsigned char pointer to a memory buffer containing the image file data in memory.
The size of the memory buffer pointed to by pBuffer.
Description
Loads an image file from memory.
Syntax
Visual Basic
Public Sub LoadBufferPtr( _
   ByRef pBuffer As Byte, _
   ByVal BufferSize As Long _
) 
Parameters
pBuffer
An unsigned char pointer to a memory buffer containing the image file data in memory.
BufferSize
The size of the memory buffer pointed to by pBuffer.
Remarks

The result of setting the LoadBufferPtr method is identical to setting the FileName property, except that the LoadBufferPtr method loads image data from memory while the FileName property loads image data from a disk file.

The LoadBufferPtr method is also the same as the LoadBlob and LoadBufferPtr methods, except that the interfaces are different:

Like the other methods however, when an image is loaded using the LoadBufferPtr method, the image is converted to a Device Independent Bitmap (DIB). The hDIB property is set to the handle of DIB. The DIB is converted to a Device Dependent Bitmap (DDB) and the Picture property is set to the resulting DDB. If an Undo DIB resides in memory, it is deleted and the hDIBUndo property is set to NULL.

Note: CameraRAW images can only be loaded from a filename. Loading from a stream is not supported as the entire image must be loaded before the raw format can be recognized.

See Also

ImagXpress Object  | ImagXpress Members  | FileName Property  | LoadBuffer Method  | LoadBlob Method  | Loading

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback