xtd - Reference Guide 0.2.0
pixel_format.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum.h>
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  format16bpp_rgb555 = 0x00021005,
37  format16bpp_rgb565 = 0x00021006,
39  format24bpp_rgb = 0x00021808,
41  format32bpp_rgb = 0x00022009,
43  format1bpp_indexed = 0x00030101,
45  format4bpp_indexed = 0x00030402,
47  format8bpp_indexed = 0x00030803,
49  alpha = 0x00040000,
51  format16bpp_argb1555 = 0x00061007,
53  palpha = 0x00080000,
55  format32bpp_pargb = 0x000E200B,
57  extended = 0x00100000,
59  format16bpp_gray_scale = 0x00101004,
61  format48bpp_rgb = 0x0010300C,
63  format64bpp_pargb = 0x001C400E,
65  canonical = 0x00200000,
67  format32bpp_argb = 0x0026200A,
69  format64bpp_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::format16bpp_rgb555, "format16bpp_rgb555"}, {xtd::drawing::imaging::pixel_format::format16bpp_rgb565, "format16bpp_rgb565"}, {xtd::drawing::imaging::pixel_format::format24bpp_rgb, "format24bpp_rgb"}, {xtd::drawing::imaging::pixel_format::format32bpp_rgb, "format32bpp_rgb"}, {xtd::drawing::imaging::pixel_format::format1bpp_indexed, "format1bpp_indexed"}, {xtd::drawing::imaging::pixel_format::format4bpp_indexed, "format4bpp_indexed"}, {xtd::drawing::imaging::pixel_format::format8bpp_indexed, "format8bpp_indexed"}, {xtd::drawing::imaging::pixel_format::alpha, "alpha"}, {xtd::drawing::imaging::pixel_format::format16bpp_argb1555, "format16bpp_argb1555"}, {xtd::drawing::imaging::pixel_format::palpha, "palpha"}, {xtd::drawing::imaging::pixel_format::format32bpp_pargb, "format32bpp_pargb"}, {xtd::drawing::imaging::pixel_format::extended, "extended"}, {xtd::drawing::imaging::pixel_format::format16bpp_gray_scale, "format16bpp_gray_scale"}, {xtd::drawing::imaging::pixel_format::format48bpp_rgb, "format48bpp_rgb"}, {xtd::drawing::imaging::pixel_format::format64bpp_pargb, "format64bpp_pargb"}, {xtd::drawing::imaging::pixel_format::canonical, "canonical"}, {xtd::drawing::imaging::pixel_format::format32bpp_argb, "format32bpp_argb"}, {xtd::drawing::imaging::pixel_format::format64bpp_argb, "format64bpp_argb"}};}
80 };
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 pixel format is 1 bit per pixel and that it uses indexed color. The color table therefore has two colors in it.
The pixel format is undefined.
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:12
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 8 bits per pixel, indexed. The color table therefore has 256 colors in i...
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The maximum value for this enumeration.
Specifies that the format is 48 bits per pixel; 16 bits each are used for the red, green, and blue components.
Specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green...
Contains xtd::enum_object.
pixel_format
Specifies the format of the color data for each pixel in the image.
Definition: pixel_format.h:23
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.
Specifies that the format is 32 bits per pixel; 8 bits each are used for the red, green...
The xtd.drawing.imaging namespace provides advanced GDI+ imaging functionality. Basic graphics functi...
Definition: color_palette.h:21
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.
The default pixel format of 32 bits per pixel. The format specifies 24-bit color depth and an 8-bit a...
The pixel format contains premultiplied alpha values.
Specifies that the format is 16 bits per pixel; 5 bits each are used for the red, green...
Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components.
The pixel data contains alpha values that are not premultiplied.
The pixel data contains GDI colors.
The pixel format is 16 bits per pixel. The color information specifies 65536 shades of gray...
The pixel format is 16 bits per pixel. The color information specifies 32,768 shades of color...
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: enum_set_attribute.h:78
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
Specifies that the format is 4 bits per pixel, indexed.