ColorHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class provides static helper methods for colors.
public static class ColorHelper
type ColorHelper = class
Public Module ColorHelper
- Inheritance
-
ColorHelper
Methods
FromHsl(Double, Double, Double, Double) |
Creates a Color from the specified hue, saturation, lightness, and alpha values. |
FromHsv(Double, Double, Double, Double) |
Creates a Color from the specified hue, saturation, value, and alpha values. |
ToColor(String) |
Creates a Color from a XAML color string. Any format used in XAML should work. |
ToHex(Color) |
Converts a Color to a hexadecimal string representation. |
ToHsl(Color) | |
ToHsv(Color) | |
ToInt(Color) |
Converts a Color to a premultiplied Int32 - 4 byte ARGB structure. |