void known_color_brightness_example2(paint_event_args&
e) {
std::vector<xtd::drawing::known_color> color_matches(15);
int count = 0;
color_matches[count++] = enum_value;
}
font my_font(
"Arial", 12);
some_color = red_shade;
g.fill_rectangle(my_brush1,
x,
y, 100, 30);
for (
int i = 0;
i < count;
i++) {
my_brush1.xtd::drawing::color = some_color;
g.fill_rectangle(my_brush1,
x,
y, 100, 30);
}
}
static xtd::drawing::solid_brush black()
A system-defined brush object.
static xtd::drawing::color from_known_color(xtd::drawing::known_color color)
Creates a xtd::drawing::color class from the four ARGB component (alpha, red, green,...
xtd::byte g() const noexcept
Gets the green component value of this xtd::drawing::color class.
static xtd::drawing::color from_argb(uint32 argb) noexcept
Creates a xtd::drawing::color class from a 32-bit ARGB value.
xtd::string to_string() const noexcept override
Creates a human-readable string that represents this color class.
float get_brightness() const noexcept
Gets the hue-saturation-brightness (HSB) brightness value for this xtd::drawing::color structure.
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Defines a particular format for text, including font face, size, and style attributes....
Definition font.h:45
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition solid_brush.h:30
known_color
Specifies the known system colors.
Definition known_color.h:18
@ yellow_green
A system-defined color.