xtd 0.2.0
pixel_format.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace drawing {
13  namespace imaging {
23  enum class pixel_format {
25  undefined = 0,
27  dont_care = 0,
29  max = 0x0000000F,
31  indexed = 0x00010000,
33  gdi = 0x00020000,
35  format_16bpp_rgb555 = 0x00021005,
37  format_16bpp_rgb565 = 0x00021006,
39  format_24bpp_rgb = 0x00021808,
41  format_32bpp_rgb = 0x00022009,
43  format_1bpp_indexed = 0x00030101,
45  format_4bpp_indexed = 0x00030402,
47  format_8bpp_indexed = 0x00030803,
49  alpha = 0x00040000,
51  format_16bpp_argb1555 = 0x00061007,
53  palpha = 0x00080000,
55  format_32bpp_pargb = 0x000E200B,
57  extended = 0x00100000,
59  format_16bpp_gray_scale = 0x00101004,
61  format_48bpp_rgb = 0x0010300C,
63  format_64bpp_pargb = 0x001C400E,
65  canonical = 0x00200000,
67  format_32bpp_argb = 0x0026200A,
69  format_64bpp_argb = 0x0034400D,
70  };
71  }
72  }
73 }
74 
77 
78 template<> struct xtd::enum_register<xtd::drawing::imaging::pixel_format> {
79  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::drawing::imaging::pixel_format> {{xtd::drawing::imaging::pixel_format::undefined, "undefined"}, {xtd::drawing::imaging::pixel_format::max, "max"}, {xtd::drawing::imaging::pixel_format::indexed, "indexed"}, {xtd::drawing::imaging::pixel_format::gdi, "gdi"}, {xtd::drawing::imaging::pixel_format::format_16bpp_rgb555, "format_16bpp_rgb555"}, {xtd::drawing::imaging::pixel_format::format_16bpp_rgb565, "format_16bpp_rgb565"}, {xtd::drawing::imaging::pixel_format::format_24bpp_rgb, "format_24bpp_rgb"}, {xtd::drawing::imaging::pixel_format::format_32bpp_rgb, "format_32bpp_rgb"}, {xtd::drawing::imaging::pixel_format::format_1bpp_indexed, "format_1bpp_indexed"}, {xtd::drawing::imaging::pixel_format::format_4bpp_indexed, "format_4bpp_indexed"}, {xtd::drawing::imaging::pixel_format::format_8bpp_indexed, "format_8bpp_indexed"}, {xtd::drawing::imaging::pixel_format::alpha, "alpha"}, {xtd::drawing::imaging::pixel_format::format_16bpp_argb1555, "format_16bpp_argb1555"}, {xtd::drawing::imaging::pixel_format::palpha, "palpha"}, {xtd::drawing::imaging::pixel_format::format_32bpp_pargb, "format_32bpp_pargb"}, {xtd::drawing::imaging::pixel_format::extended, "extended"}, {xtd::drawing::imaging::pixel_format::format_16bpp_gray_scale, "format_16bpp_gray_scale"}, {xtd::drawing::imaging::pixel_format::format_48bpp_rgb, "format_48bpp_rgb"}, {xtd::drawing::imaging::pixel_format::format_64bpp_pargb, "format_64bpp_pargb"}, {xtd::drawing::imaging::pixel_format::canonical, "canonical"}, {xtd::drawing::imaging::pixel_format::format_32bpp_argb, "format_32bpp_argb"}, {xtd::drawing::imaging::pixel_format::format_64bpp_argb, "format_64bpp_argb"}};}
80 };
Specifies that the format is 8 bits per pixel, indexed. The color table therefore has 256 colors in i...
Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components.
The pixel format is undefined.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components.
Specifies that the format is 4 bits per pixel, indexed.
The maximum value for this enumeration.
Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components. The red, green, and blue components are premultiplied, according to the alpha component.
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
Specifies that the format is 32 bits per pixel; 8 bits each are used for the red, green...
The pixel format is 16 bits per pixel. The color information specifies 65536 shades of gray...
pixel_format
Specifies the format of the color data for each pixel in the image.
Definition: pixel_format.h:23
The xtd.drawing.imaging namespace provides advanced GDI+ imaging functionality. Basic graphics functi...
Definition: bitmap_data.h:15
The default pixel format of 32 bits per pixel. The format specifies 24-bit color depth and an 8-bit a...
Specifies that the pixel format is 1 bit per pixel and that it uses indexed color. The color table therefore has two colors in it.
Specifies that the format is 16 bits per pixel; 5 bits are used for the red component, 6 bits are used for the green component, and 5 bits are used for the blue component.
Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components. The red, green, and blue components are premultiplied according to the alpha component.
Specifies that the format is 48 bits per pixel; 16 bits each are used for the red, green, and blue components.
The pixel format is 16 bits per pixel. The color information specifies 32,768 shades of color...
The pixel format contains premultiplied alpha values.
Specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green...
Specifies that the format is 16 bits per pixel; 5 bits each are used for the red, green...
The pixel data contains alpha values that are not premultiplied.
The pixel data contains GDI colors.
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: flags_attribute.h:34
The pixel data contains color-indexed values, which means the values are an index to colors in the sy...
Provides the registration struct for enumerations.
Definition: enum_register.h:36