WxImage
lastmod 2026-11-10created 2015-04-114 edits
wxImage is the wxWidgets image class for handling pixel data in a platform-independent way. It reads and writes various formats such as PNG, JPEG, and BMP from files or streams, and handles pixel-level processing such as resizing, rotation, and color manipulation. To draw it on screen or display it in a control, it must be converted to wxBitmap, the platform-native format, so the usual pattern is to load and process an image with wxImage and then convert it to wxBitmap.