xtd 0.2.0
Loading...
Searching...
No Matches
pixel_format.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/enum>
6
8namespace 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
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};
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
pixel_format
Specifies the format of the color data for each pixel in the image.
Definition pixel_format.h:23
@ format_64bpp_argb
Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha,...
@ format_48bpp_rgb
Specifies that the format is 48 bits per pixel; 16 bits each are used for the red,...
@ alpha
The pixel data contains alpha values that are not premultiplied.
@ max
The maximum value for this enumeration.
@ format_32bpp_argb
Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha,...
@ format_16bpp_argb1555
The pixel format is 16 bits per pixel. The color information specifies 32,768 shades of color,...
@ format_8bpp_indexed
Specifies that the format is 8 bits per pixel, indexed. The color table therefore has 256 colors in i...
@ undefined
The pixel format is undefined.
@ format_4bpp_indexed
Specifies that the format is 4 bits per pixel, indexed.
@ format_16bpp_rgb565
Specifies that the format is 16 bits per pixel; 5 bits are used for the red component,...
@ gdi
The pixel data contains GDI colors.
@ indexed
The pixel data contains color-indexed values, which means the values are an index to colors in the sy...
@ palpha
The pixel format contains premultiplied alpha values.
@ canonical
The default pixel format of 32 bits per pixel. The format specifies 24-bit color depth and an 8-bit a...
@ format_32bpp_rgb
Specifies that the format is 32 bits per pixel; 8 bits each are used for the red, green,...
@ format_24bpp_rgb
Specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green,...
@ format_32bpp_pargb
Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha,...
@ dont_care
No pixel format is specified.
@ format_16bpp_gray_scale
The pixel format is 16 bits per pixel. The color information specifies 65536 shades of gray.
@ format_1bpp_indexed
Specifies that the pixel format is 1 bit per pixel and that it uses indexed color....
@ format_16bpp_rgb555
Specifies that the format is 16 bits per pixel; 5 bits each are used for the red, green,...
@ format_64bpp_pargb
Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha,...
The xtd.drawing.imaging namespace provides advanced GDI+ imaging functionality. Basic graphics functi...
Definition bitmap_data.h:15
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38