string text =
xtd::string::format(
"Slate blue has these ARGB values: alpha:{0}, red:{1}, green: {2}, blue {3}",
a,
r,
g,
b);
}
xtd::byte r() const noexcept
Gets the red component value of this xtd::drawing::color class.
static const xtd::drawing::color slate_blue
Gets a system-defined color that has an ARGB value of 0xFF6A5ACD. This field is constant.
Definition color.h:437
static xtd::drawing::color from_name(const xtd::string &name) noexcept
Creates a xtd::drawing::color class from the specified name of a predefined color.
xtd::byte g() const noexcept
Gets the green component value of this xtd::drawing::color class.
xtd::byte a() const noexcept
Gets the alpha component value of this xtd::drawing::color class.
xtd::byte b() const noexcept
Gets the blue component value of this xtd::drawing::color class.
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
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.h:35
Stores a set of four floating-point numbers that represent the location and size of a rectangle....
Definition rectangle_f.h:34
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:31
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition solid_brush.h:30