xtd 0.2.0
image_emf.cpp

Shows how to use xtd::drawing::image class with emf 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_emf::properties::resources::gammasoft_emf();
bmp.save(path::combine(path::get_temp_path(), "image_emf.png"));
process::start(path::combine(path::get_temp_path(), "image_emf.png"));
}