SftTree/DLL 6.5

FreeGDIPlusImageLoadedFromResource

Softel vdm, Inc.

Deletes a GDI+ image obtained using SftTree_LoadGDIPlusImageFromResource.

C

void SftTree_FreeGDIPlusImageLoadedFromResource(LPVOID pGDIPlusImage);

Parameters

pGDIPlusImage

A Gdiplus::Image pointer to be deleted. This value is usually obtained from a preceding call to SftTree_LoadGDIPlusImageFromResource.

Comments

Deletes a GDI+ image obtained using SftTree_LoadGDIPlusImageFromResource.

This function is mainly intended for applications written using C. Because Gdiplus is C++ based, C applications don't readily have access to the Gdiplus::Image class and cannot use delete to free a GDI+ image object. Using SftTree_FreeGDIPlusImageLoadedFromResource even C applications can use GDI+ images, without needing access to GDI+ itself.

The application retains ownership of the Gdiplus::Image pointer returned by SftTree_FreeGDIPlusImageLoadedFromResource. Once the image is no longer needed, it can be released using SftTree_FreeGDIPlusImageLoadedFromResource, which frees the associated memory.

Information specific to SftTree/DLL Windows Mobile EditionWindows Mobile Edition:  SftTree_FreeGDIPlusImageLoadedFromResource is not supported.

See Also  C/C++ API  |  CategoriesNotifications

 


Feedback / comments / error reports for this topic
© 2009 - Softel vdm, Inc. - www.softelvdm.com