This functions assigns the image data pointed to by hImage to the BITMAPINFO structure.
|
Parameter |
Type |
Description |
|
hImage |
HANDLE |
Identifies the image. |
|
lpDIB |
LPBITMAPINFO |
Points to a BITMAPINFO struct which defines the image. |
|
lpFlags |
LPINT |
Points to an integer which receives the flags for the given image (see below for a list of possible flags). |
Return Value
The return value is IMG_OK if the function was successful. Otherwise, it returns an ImageMan error code.
Comments
The currently defined flags (as found in IMGMAN.H) are as follows:
IMG_RENDER_SELF When set, ImgDrawImage will call the DIL to render the image to the screen. This allows a library to have more control over the drawing of an image. In general, it probably won't help you much to look at this flag.
IMG_PRINT_SELF When set, ImgPrintImage will call the DIL to handle printing the image. This is particularly useful for the EPSF DIL, which needs to output PostScript code directly to the printer.
IMG_PRNT_VECTOR Indicates that the image will be printed as a metafile.
IMG_DISP_VECTOR Indicates that the image will display as a metafile.
IMG_MEM_BASED This flag is set if the image came from a memory-based source (clipboard, hDIB, hWMF).
© 1995-2004 Data Techniques, Inc. All rights reserved.