void to_argb_to_string_example1(paint_event_args&
e) {
std::vector<known_color> color_matches;
color_matches.emplace_back(
static_cast<known_color>(enum_value));
}
font my_font {"Arial", 9};
for (
size_t i = 0;
i < color_matches.size(); ++
i) {
my_brush1.color(some_color);
g.fill_rectangle(my_brush1,
x,
y, 50, 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,...
uint32 to_argb() const noexcept
Gets the 32-bit ARGB value of this xtd::drawing::color class.
xtd::byte r() const noexcept
Gets the red component value of this xtd::drawing::color class.
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.
bool is_system_color() const noexcept
Gets a value indicating whether this xtd::drawing::color structure is a system color....
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
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.