This function returns an ImageMan image handle given a handle to a Windows Metafile and it's bounding box.
|
Parameter |
Type |
Description |
|
hWMF |
HANDLE |
Handle to a Windows Metafile. ImageMan takes responsibility for the Metafile upon calling this function. |
|
lpRect |
LPRECT |
Points to a RECT structure which contains the metafile's bounding box. |
Return Value
The return value is a valid ImageMan image handle on success, NULL on failure.
Comments
As with the ImgFromDIB function call, once the handle has been returned, the application can treat it as it would any other ImageMan image, except that it cannot be unloaded via the ImgUnload function. Calling ImgGetInfo for the returned image will reveal that the IMG_MEM_BASED flag is set, indicating that the image has no external representation to recreate itself from.
Your application should not free the handle to the WMF it has passed in since ImageMan will do that when ImgClose is called on the returned ImageMan handle.
© 1995-2004 Data Techniques, Inc. All rights reserved.