void from_argb2(paint_event_aArgs&
e) {
int alpha;
for (alpha = 25; alpha <= 250; alpha += 25) {
g.fill_rectangle(my_brush,
x,
y, 50, 100);
g.fill_rectangle(my_brush,
x,
y + 250, 50, 50);
}
for (alpha = 25; alpha <= 250; alpha += 25) {
g.fill_rectangle(my_brush,
x,
y, 50, 150);
}
for (alpha = 25; alpha <= 250; alpha += 25) {
g.fill_rectangle(my_brush,
x,
y, 50, 150);
}
}
static const xtd::drawing::color green
Gets a system-defined color that has an ARGB value of 0xFF008000. This field is constant.
Definition color.h:215
static const xtd::drawing::color red
Gets a system-defined color that has an ARGB value of 0xFFFF0000. This field is constant.
Definition color.h:404
xtd::byte g() const noexcept
Gets the green component value of this xtd::drawing::color class.
static const xtd::drawing::color blue
Gets a system-defined color that has an ARGB value of 0xFF0000FF. This field is constant.
Definition color.h:89
static xtd::drawing::color from_argb(uint32 argb) noexcept
Creates a xtd::drawing::color class from a 32-bit ARGB value.
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