Shows how to use xtd::drawing::image class.
#include <xtd/drawing/bitmap>
#include <xtd/console>
#include "logo.xpm"
auto main() -> int {
console::write_line("handle = 0x{:X}", bmp.handle());
console::write_line("horizontal resolution = {}", bmp.horizontal_resolution());
console::write_line("physical dimension = {}", bmp.physical_dimension());
console::write_line("raw format = {}", bmp.raw_format());
console::write_line("vertcal resolution = {}", bmp.vertical_resolution());
console::write_line("size = {}", bmp.size());
console::write_line("pixel[50][100] = {}", bmp.get_pixel(50, 100));
}
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes....
Definition bitmap.h:26
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.h:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10