Does wxWidgets support xpms?

See wxMemoryDC for an example of drawing onto a bitmap. All wxWidgets platforms support XPMs for small bitmaps and icons. You may include the XPM inline as below, since it’s C code, or you can load it at run-time.

How do I create an icon using an XPM?

A macro, wxICON, is available which creates an icon using an XPM on the appropriate platform, or an icon resource on Windows. wxPerl Note: In wxPerl use Wx::Icon->newFromXPM (data). Loads an icon from a file or resource. This can refer to a resource name or a filename under MS Windows and X. Its meaning is determined by the type parameter.

What happens if I delete an icon in wxWidgets?

If the application omits to delete the icon explicitly, the icon will be destroyed automatically by wxWidgets when the application exits. Do not delete an icon that is selected into a memory device context. Returns disabled (dimmed) version of the icon. This method is available in wxIcon only under wxMSW, other ports only have it in wxBitmap.

How do I load missing or partially-implemented formats in wxWidgets?

Note that missing or partially-implemented formats are automatically supplemented by using wxImage to load the data, and then converting it to wxBitmap form. Note that using wxImage is the preferred way to load images in wxWidgets, with the exception of resources (XPM-files or native Windows resources).