This function displays the image referenced by hImage on the screen at the specified location and size.
|
Parameter |
Type |
Description |
|
hImage |
HANDLE |
Identifies the Image to be displayed. |
|
hDC |
HDC |
Identifies the device context for the display. |
|
lpDestRect |
LPRECT |
Points to a RECT data structure containing the logical screen coordinates to draw the image into. |
|
lpSrcRect |
LPRECT |
Points to a RECT data structure specifying the portion of the source image which will be displayed. If NULL, the entire image will be displayed in lpDestRect. |
Return Value
The return value indicates whether the image was displayed successfully. It is nonzero if the image was displayed successfully. Otherwise, it is zero.
Comments
The ImgDrawImage function does some simple decision making to determine how to draw the given image. If a device dependent bitmap (DDB) exists for this image, the resulting bitmap will be drawn to the screen with a StretchBlt call; otherwise, raster-based images will be drawn using StretchDIBits and vector-based images will be drawn by playing the Metafile to the output device context. Note that if there is no currently loaded image handle (DIB, DDB, or WMF), the ImgDrawImage function will load one.
© 1995-2004 Data Techniques, Inc. All rights reserved.