ImageMan DLL Suite Version 8Submit feedback on this topic   

ImgGetDataPtr

LPVOID IMAPI ImgGetDataPtr(hImage)

This function retrieves a pointer to the internal DIB image's bits.

 

Parameter

Type

Description

hImage

HANDLE

Identifies the Image whose bits should be retrieved.

 

Return Value

The return value is a pointer the image's raster data if the function is successful, NULL if not.

Comments

This image will return NULL if the image data has not been loaded. You can use the ImgLoad function to load the image data if required.

Note

ImgGetDataPtr works only with raster images; using this function on vector images will result in an IMG_BAD_TYPE error being returned to your application. The pointer returned by this function is only valid while the image is opened. After calling ImgClose on the image this pointer will no longer point to a valid image.

 

 


© 1995-2004 Data Techniques, Inc. All rights reserved.