ColorHelper Class

Definition

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)

Converts a Color to an HslColor.

ToHsv(Color)

Converts a Color to an HsvColor.

ToInt(Color)

Converts a Color to a premultiplied Int32 - 4 byte ARGB structure.

Applies to