Memory Functions
Windows GDI+ exposes a flat API that consists of about 600 functions, which are implemented in Gdiplus.dll and declared in Gdiplusflat.h. The functions in the GDI+ flat API are wrapped by a collection of about 40 C++ classes. It is recommended that you do not directly call the functions in the flat API. Whenever you make calls to GDI+, you should do so by calling the methods and functions provided by the C++ wrappers. Microsoft Product Support Services will not provide support for code that calls the flat API directly. For more information on using these wrapper methods, see GDI+ Flat API.
The following flat API functions are wrapped by the GdiplusBase C++ class.
Memory Functions and Corresponding Wrapper Methods
Flat function | Wrapper method | Remarks |
---|---|---|
GpStatus WINGDIPAPI GdipAlloc(size_t size) |
GpStatus WINGDIPAPI GdiplusBase void* (operator new)(size_t in_size) |
Allocates memory for one Windows GDI+ object. GdipAlloc is declared in GdiplusMem.h. |
GpStatus WINGDIPAPI GdipFree(void* ptr); |
GpStatus WINGDIPAPI GdiplusBase void (operator delete)(void* in_pVoid) |
Deallocates memory for one Windows GDI+ object. GdipFree is declared in GdiplusMem.h. |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for