Table of Contents

Class HsbaColor

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll
public class HsbaColor
Inheritance
HsbaColor
Inherited Members
Extension Methods

Constructors

HsbaColor()

public HsbaColor()

HsbaColor(double, double, double, double)

public HsbaColor(double h, double s, double b, double a = 1)

Parameters

h double
s double
b double
a double

HsbaColor(int, int, int, int)

public HsbaColor(int r, int g, int b, int a = 255)

Parameters

r int
g int
b int
a int

HsbaColor(string)

public HsbaColor(string hexColor)

Parameters

hexColor string

HsbaColor(Brush)

public HsbaColor(Brush brush)

Parameters

brush Brush

Properties

A

0 - 1

public double A { get; set; }

Property Value

double

B

0 - 1

public double B { get; set; }

Property Value

double

Color

public Color Color { get; }

Property Value

Color

H

0 - 359,360 = 0

public double H { get; set; }

Property Value

double

HexString

public string HexString { get; }

Property Value

string

OpaqueColor

public Color OpaqueColor { get; }

Property Value

Color

OpaqueSolidColorBrush

public SolidColorBrush OpaqueSolidColorBrush { get; }

Property Value

SolidColorBrush

RgbaColor

public RgbaColor RgbaColor { get; }

Property Value

RgbaColor

RgbaString

public string RgbaString { get; }

Property Value

string

S

0 - 1

public double S { get; set; }

Property Value

double

SolidColorBrush

public SolidColorBrush SolidColorBrush { get; }

Property Value

SolidColorBrush

Y

亮度 0 - 100

public int Y { get; }

Property Value

int