Converts colors to and from xtd::drawing::color class. This class cannot be inherited.
Public Static Methods | |
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 | 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 | 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, upper color, and lower color. | |
static xtd::drawing::color | brightness (const xtd::drawing::color &color, double percent) noexcept |
Creates a new color with brightness changed of the specified color with specified percent. | |
static xtd::drawing::color | color (const xtd::drawing::color &color, const xtd::drawing::color &value, double percent) noexcept |
Create a new color with specified value that will be added/removed from the specified color with specified percent. | |
static xtd::drawing::color | color_extraction (const xtd::drawing::color &color, int32 threshold, const drawing::color &extraction_color, const xtd::drawing::color &other_color) noexcept |
Creates a new filtered color from specified color and replaces other color with other specified color. | |
static xtd::drawing::color | color_substitution (const xtd::drawing::color &color, int32 threshold, const drawing::color &source_color, const xtd::drawing::color &new_color) noexcept |
Creates a new color where the specified source color is replaced by the new color. | |
static xtd::drawing::color | contrast (const xtd::drawing::color &color, double percent) noexcept |
Creates a new contrasting color of the specified color with specified percent factor. | |
static xtd::drawing::color | dark (const xtd::drawing::color &color) noexcept |
Creates a new darker color of the specified color with 33% factor. | |
static xtd::drawing::color | dark (const xtd::drawing::color &color, double percent) noexcept |
Creates a new darker color of the specified color with specified percent factor. | |
static xtd::drawing::color | disabled (const xtd::drawing::color &fore_color, const xtd::drawing::color &back_color) noexcept |
Creates a new disabled color of the specified color with specified reference background color. | |
static xtd::drawing::color | disabled (const xtd::drawing::color &fore_color, float brightness) noexcept |
Creates a new disabled color of the specified color with specified brightness. | |
static xtd::drawing::color | gamma_correction (const xtd::drawing::color &color, double r, double g, double b) noexcept |
Creates a new gamma corrected color of the specified color with specified r, g, b corrections. | |
static xtd::drawing::color | grayscale (const xtd::drawing::color &color) noexcept |
Creates a new gray color of the specified color. | |
static xtd::drawing::color | grayscale (const xtd::drawing::color &color, double percent) noexcept |
Creates a new gray color of the specified color with specified percent factor. | |
static xtd::drawing::color | hue_rotate (const xtd::drawing::color &color, int angle) noexcept |
Creates a new color with rotated hue of the specified color with specified angle. | |
static xtd::drawing::color | invert (const xtd::drawing::color &color) noexcept |
Creates a new inverted color of the specified color. | |
static xtd::drawing::color | invert (const xtd::drawing::color &color, double percent) noexcept |
Creates a new inverted color of the specified color with specified percent factor. | |
static xtd::drawing::color | light (const xtd::drawing::color &color) noexcept |
Creates a new lighter color of the specified color with 33% factor. | |
static xtd::drawing::color | light (const xtd::drawing::color &color, double percent) noexcept |
Creates a new lighter color of the specified color with specified percent factor. | |
static xtd::drawing::color | saturate (const xtd::drawing::color &color, double percent) noexcept |
Creates a new color with saturation changed of the specified color. | |
static xtd::drawing::color | sepia (const xtd::drawing::color &color) noexcept |
Creates a new sepia color of the specified color. | |
static xtd::drawing::color | sepia (const xtd::drawing::color &color, double percent) noexcept |
Creates a new sepia color of the specified color with specified percent factor. | |
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. | |