Table of Contents

Class RgbaColor

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

Constructors

RgbaColor()

public RgbaColor()

RgbaColor(double, double, double, double)

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

Parameters

h double
s double
b double
a double

RgbaColor(int, int, int, int)

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

Parameters

r int
g int
b int
a int

RgbaColor(string)

public RgbaColor(string hexColor)

Parameters

hexColor string

RgbaColor(Brush)

public RgbaColor(Brush brush)

Parameters

brush Brush

Properties

A

0 - 255

public int A { get; set; }

Property Value

int

B

0 - 255

public int B { get; set; }

Property Value

int

Color

public Color Color { get; }

Property Value

Color

G

0 - 255

public int G { get; set; }

Property Value

int

HexString

public string HexString { get; }

Property Value

string

HsbaColor

public HsbaColor HsbaColor { get; }

Property Value

HsbaColor

OpaqueColor

public Color OpaqueColor { get; }

Property Value

Color

OpaqueSolidColorBrush

public SolidColorBrush OpaqueSolidColorBrush { get; }

Property Value

SolidColorBrush

R

0 - 255

public int R { get; set; }

Property Value

int

RgbaString

public string RgbaString { get; }

Property Value

string

SolidColorBrush

public SolidColorBrush SolidColorBrush { get; }

Property Value

SolidColorBrush

Y

亮度 0 - 100

public int Y { get; }

Property Value

int