Creates a new color with brightness changed of the specified color with specified percent.
- Parameters
-
color | The color to brightness. |
percent | The percent factor in % (from 0.0 to 2.0). |
- Returns
- The new color.
/ Create a new color with specified value that will be added/removed from the specified color with specified percent. /
- Parameters
-
color | The color to update. / |
value | The value to add / remove / |
percent | The percent factor in % (from 0.0 to 2.0). / |
- Returns
- The new color. static xtd::drawing::color color(const xtd::drawing::color& color, const xtd::drawing::color& value, double percent) noexcept;
/ Creates a new filtered color from specified color and replaces other color with other specified color. /
- Parameters
-
color | The color to filter. / |
threshold | The threshold value (from 0 to 765). / |
extraction_color | The color to extract. / |
other_color | The other color. / |
- Returns
- The new color. 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 color where the specified source color is replaced by the new color. /
- Parameters
-
color | The color to filter. / |
threshold | The threshold value (from 0 to 765). / |
source_color | The source color. / |
new_color | The new color. / |
- Returns
- The new 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 contrasting color of the specified color with specified percent factor. /
- Parameters
-
color | The color to change contrast. / |
percent | The percent factor in % (from 0.0 to 1.0). / |
- Returns
- The new color. /
/ Creates a new darker color of the specified color with 33% factor. /
- Parameters
-
color | The color to dark. / |
- Returns
- The new color. static xtd::drawing::color dark(const xtd::drawing::color& color) noexcept; / Creates a new darker color of the specified color with specified percent factor. /
- Parameters
-
color | The color to dark. / |
percent | The darker factor in % (from 0.0 to 1.0). / |
- Returns
- The new color. /
/ Creates a new disabled color of the specified color with specified reference background color. /
- Parameters
-
fore_color | The fore color to disabled. / |
back_color | The reference background color. / |
- Returns
- The new color. 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 brightness. /
- Parameters
-
fore_color | The fore color to disabled. / |
brightness | The brightness of the reference backgroung color. / |
- Returns
- The new color. static xtd::drawing::color disabled(const xtd::drawing::color& fore_color, float brightness) noexcept; / Creates a new gamma corrected color of the specified color with specified r, g, b corrections. /
- Parameters
-
color | The color to grayscale. / |
r | The red correction from 0.1 to 5. / |
g | The green correction from 0.1 to 5. / |
b | The blue correction from 0.1 to 5. / |
- Returns
- The new color. static xtd::drawing::color gamma_correction(const xtd::drawing::color& color, double r, double g, double b) noexcept;
/ Creates a new gray color of the specified color. /
- Parameters
-
color | The color to grayscale. / |
- Returns
- The new color. static xtd::drawing::color grayscale(const xtd::drawing::color& color) noexcept; / Creates a new gray color of the specified color with specified percent factor. /
- Parameters
-
color | The color to grayscale. / |
percent | The percent factor. / |
- Returns
- The new color. /
/ Creates a new color with rotated hue of the specified color with specified angle. /
- Parameters
-
color | The color to rotate hue. / |
angle | The angle in degrees (form 0 to 360). / |
- Returns
- The new color. static xtd::drawing::color hue_rotate(const xtd::drawing::color& color, int angle) noexcept;
/ Creates a new inverted color of the specified color. /
- Parameters
-
color | The color to invert. / |
- Returns
- The new color. static xtd::drawing::color invert(const xtd::drawing::color& color) noexcept; / Creates a new inverted color of the specified color with specified percent factor. /
- Parameters
-
color | The color to invert. / |
- Returns
- The new color. /
/ Creates a new lighter color of the specified color with 33% factor. /
- Parameters
-
color | The color to light. / |
- Returns
- The new color. static xtd::drawing::color light(const xtd::drawing::color& color) noexcept; / Creates a new lighter color of the specified color with specified percent factor. /
- Parameters
-
color | The color to light. / |
percent | The lighter factor in % (from 0.0 to 1.0). / |
- Returns
- The new color. /
/ Creates a new color with saturation changed of the specified color. /
- Parameters
-
color | The color to saturate. / |
percent | The saturatiob factor in % / |
- Returns
- The new result. /
/ Creates a new sepia color of the specified color. /
- Parameters
-
color | The color to sepia. / |
- Returns
- The new color. static xtd::drawing::color sepia(const xtd::drawing::color& color) noexcept; / Creates a new sepia color of the specified color with specified percent factor. /
- Parameters
-
color | The color to sepia. / |
percent | The percent factor in % (from 0.0 to 1.0). / |
- Returns
- The new color. /