C# Class SkiaSharp.SKColor

Mostrar archivo Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
Empty SKColor

Public Methods

Method Description
Equals ( object other ) : bool
FromHsl ( float h, float s, float l, byte a = 255 ) : SKColor
FromHsv ( float h, float s, float v, byte a = 255 ) : SKColor
GetHashCode ( ) : int
Parse ( string hexString ) : SKColor
SKColor ( byte red, byte green, byte blue ) : System
SKColor ( byte red, byte green, byte blue, byte alpha ) : System
SKColor ( uint value ) : System
ToHsl ( float &h, float &s, float &l ) : void
ToHsv ( float &h, float &s, float &v ) : void
ToString ( ) : string
TryParse ( string hexString, SKColor &color ) : bool
WithAlpha ( byte alpha ) : SKColor
WithBlue ( byte blue ) : SKColor
WithGreen ( byte green ) : SKColor
WithRed ( byte red ) : SKColor
operator ( ) : bool

Private Methods

Method Description
HueToRgb ( float v1, float v2, float vH ) : float

Method Details

Equals() public method

public Equals ( object other ) : bool
other object
return bool

FromHsl() public static method

public static FromHsl ( float h, float s, float l, byte a = 255 ) : SKColor
h float
s float
l float
a byte
return SKColor

FromHsv() public static method

public static FromHsv ( float h, float s, float v, byte a = 255 ) : SKColor
h float
s float
v float
a byte
return SKColor

GetHashCode() public method

public GetHashCode ( ) : int
return int

Parse() public static method

public static Parse ( string hexString ) : SKColor
hexString string
return SKColor

SKColor() public method

public SKColor ( byte red, byte green, byte blue ) : System
red byte
green byte
blue byte
return System

SKColor() public method

public SKColor ( byte red, byte green, byte blue, byte alpha ) : System
red byte
green byte
blue byte
alpha byte
return System

SKColor() public method

public SKColor ( uint value ) : System
value uint
return System

ToHsl() public method

public ToHsl ( float &h, float &s, float &l ) : void
h float
s float
l float
return void

ToHsv() public method

public ToHsv ( float &h, float &s, float &v ) : void
h float
s float
v float
return void

ToString() public method

public ToString ( ) : string
return string

TryParse() public static method

public static TryParse ( string hexString, SKColor &color ) : bool
hexString string
color SKColor
return bool

WithAlpha() public method

public WithAlpha ( byte alpha ) : SKColor
alpha byte
return SKColor

WithBlue() public method

public WithBlue ( byte blue ) : SKColor
blue byte
return SKColor

WithGreen() public method

public WithGreen ( byte green ) : SKColor
green byte
return SKColor

WithRed() public method

public WithRed ( byte red ) : SKColor
red byte
return SKColor

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

public static SKColor,SkiaSharp Empty
return SKColor