Shows how to use xtd::drawing::image class with xpm image.
#include <xtd/diagnostics/process>
#include <xtd/drawing/bitmap>
#include <xtd/io/path>
#include "../resources/gammasoft.xpm"
auto main() -> int {
auto bmp =
bitmap {gammasoft_xpm};
bmp.
save(path::combine(path::get_temp_path(),
"image_xpm.png"));
process::start(path::combine(path::get_temp_path(), "image_xpm.png"));
}
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes....
Definition bitmap.h:26
void save(const xtd::string &filename) const
Saves this xtd::drawing::image to the specified file or stream.
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.h:10
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition brush.h:18
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16