Converts colors to and from xtd::drawing::color class. This class cannot be inherited.
Definition color_converter.hpp:24
static xtd::drawing::color threshold(const xtd::drawing::color &color, int32 threshold) noexcept
Creates a new black or white color of the specified color with specified threshold.
static xtd::drawing::color bitonal(const drawing::color &color, int32 threshold, const drawing::color &upper_color, const drawing::color &lower_color) noexcept
Creates a new lower or upper color of the specified color with specified threshold,...
static xtd::drawing::color average(const xtd::drawing::color &color1, const xtd::drawing::color &color2, double weight) noexcept
Returns the weighted average color between the two given colors.
static xtd::drawing::color average(const xtd::drawing::color &color1, const xtd::drawing::color &color2, double weight, bool average_alpha) noexcept
Returns the weighted average color between the two given colors.
static xtd::drawing::color alpha_blend(const xtd::drawing::color &fore_core, const xtd::drawing::color &back_color, double alpha) noexcept
Returns the weighted average color between the two given colors.
static xtd::drawing::color sepia(const xtd::drawing::color &color, double percent) noexcept
Creates a new color with brightness changed of the specified color with specified percent.
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
Contains xtd::drawing::color class.
Contains drawing_export_ keyword.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
@ r
The R key.
Definition console_key.hpp:122
@ b
The B key.
Definition console_key.hpp:90
@ g
The G key.
Definition console_key.hpp:100
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8