xtd 0.2.0
image_bmp.cpp

Shows how to use xtd::drawing::image class with bmp image.

#include <xtd/diagnostics/process>
#include <xtd/drawing/bitmap>
#include <xtd/io/path>
#include "../properties/resources.h"
using namespace xtd::diagnostics;
using namespace xtd::drawing;
using namespace xtd::io;
auto main()->int {
auto bmp = image_bmp::properties::resources::gammasoft_bmp();
bmp.save(path::combine(path::get_temp_path(), "image_bmp.png"));
process::start(path::combine(path::get_temp_path(), "image_bmp.png"));
}