ColorHelper Class
Contains helpers useful when working with colors.
Definition
Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)
- C#
- VB
- F#
public static class ColorHelper
Public NotInheritable Class ColorHelper
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ColorHelper = class end
Inheritance | Object → ColorHelper |
Properties
ToDisplayNameExists | Determines if color display names are supported based on the current thread culture. |
Methods
GetRelativeLuminance(Color) | Gets the relative (perceptual) luminance/brightness of the given color. 1 is closer to white while 0 is closer to black. |
ToDisplayName(Color) | Determines an approximate display name for the given color. |