xtd 0.2.0
Loading...
Searching...
No Matches
image_jpeg.cpp

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

#include <xtd/xtd>
#include "../properties/resources.hpp"
auto main() -> int {
auto bmp = image_jpeg::properties::resources::gammasoft_jpeg();
bmp.save(path::combine(path::get_temp_path(), "image_jpeg.png"));
diagnostics::process::start(diagnostics::process_start_info {path::combine(path::get_temp_path(), "image_jpeg.png")}.use_shell_execute(true));
}