void from_argb1(paint_event_args&
e) {
float tri_base = 100;
float tri_height = std::sqrt(3 * (tri_base * tri_base) / 4);
float x1 = 40;
float y1 = 40;
g.fill_ellipse(trns_red_brush, x1, y1, 2 * tri_height, 2 * tri_height);
g.fill_ellipse(trns_green_brush, x1 + tri_base / 2, y1 + tri_height, 2 * tri_height, 2 * tri_height);
g.fill_ellipse(trns_blue_brush, x1 + tri_base, y1, 2 * tri_height, 2 * tri_height);
}
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.
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