C# Class PixelFarm.Drawing.Color

Datei anzeigen Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
Black Color
Blue Color
DeepPink Color
Empty Color
Gray Color
Green Color
LightGray Color
Magenta Color
OrangeRed Color
Red Color
Transparent Color
White Color
Yellow Color

Public Methods

Method Description
Blend ( Color other, float weight ) : Color
Color ( byte r, byte g, byte b ) : System
Color ( byte a, byte r, byte g, byte b ) : System
CreatRGB8Packed ( int v ) : Color
CreateGradient ( Color another, float colorDistanceRatio ) : Color
Equals ( object obj ) : bool
FromArgb ( float a, float r, float g, float b ) : Color
FromArgb ( int a, Color c ) : Color
FromArgb ( int r, int g, int b ) : Color
FromArgb ( int a, int r, int g, int b ) : Color
GetHashCode ( ) : int
Make ( double r_, double g_, double b_ ) : Color
Make ( double r_, double g_, double b_, double a_ ) : Color
Make ( float r_, float g_, float b_ ) : Color
Make ( float r_, float g_, float b_, float a_ ) : Color
Make ( int r_, int g_, int b_, int a_ ) : Color
ToABGR ( ) : uint
ToARGB ( ) : uint
ToString ( ) : string
operator ( ) : Color
operator ( ) : bool

Method Details

Blend() public method

public Blend ( Color other, float weight ) : Color
other Color
weight float
return Color

Color() public method

public Color ( byte r, byte g, byte b ) : System
r byte
g byte
b byte
return System

Color() public method

public Color ( byte a, byte r, byte g, byte b ) : System
a byte
r byte
g byte
b byte
return System

CreatRGB8Packed() static public method

static public CreatRGB8Packed ( int v ) : Color
v int
return Color

CreateGradient() public method

public CreateGradient ( Color another, float colorDistanceRatio ) : Color
another Color
colorDistanceRatio float
return Color

Equals() public method

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

FromArgb() public static method

public static FromArgb ( float a, float r, float g, float b ) : Color
a float
r float
g float
b float
return Color

FromArgb() public static method

public static FromArgb ( int a, Color c ) : Color
a int
c Color
return Color

FromArgb() public static method

public static FromArgb ( int r, int g, int b ) : Color
r int
g int
b int
return Color

FromArgb() public static method

public static FromArgb ( int a, int r, int g, int b ) : Color
a int
r int
g int
b int
return Color

GetHashCode() public method

public GetHashCode ( ) : int
return int

Make() public static method

public static Make ( double r_, double g_, double b_ ) : Color
r_ double
g_ double
b_ double
return Color

Make() public static method

public static Make ( double r_, double g_, double b_, double a_ ) : Color
r_ double
g_ double
b_ double
a_ double
return Color

Make() public static method

public static Make ( float r_, float g_, float b_ ) : Color
r_ float
g_ float
b_ float
return Color

Make() public static method

public static Make ( float r_, float g_, float b_, float a_ ) : Color
r_ float
g_ float
b_ float
a_ float
return Color

Make() public static method

public static Make ( int r_, int g_, int b_, int a_ ) : Color
r_ int
g_ int
b_ int
a_ int
return Color

ToABGR() public method

public ToABGR ( ) : uint
return uint

ToARGB() public method

public ToARGB ( ) : uint
return uint

ToString() public method

public ToString ( ) : string
return string

operator() static public method

static public operator ( ) : Color
return Color

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Black public_oe static_oe property

public static Color Black
return Color

Blue public_oe static_oe property

public static Color Blue
return Color

DeepPink public_oe static_oe property

public static Color DeepPink
return Color

Empty public_oe static_oe property

public static Color Empty
return Color

Gray public_oe static_oe property

public static Color Gray
return Color

Green public_oe static_oe property

public static Color Green
return Color

LightGray public_oe static_oe property

public static Color LightGray
return Color

Magenta public_oe static_oe property

public static Color Magenta
return Color

OrangeRed public_oe static_oe property

public static Color OrangeRed
return Color

Red public_oe static_oe property

public static Color Red
return Color

Transparent public_oe static_oe property

public static Color Transparent
return Color

White public_oe static_oe property

public static Color White
return Color

Yellow public_oe static_oe property

public static Color Yellow
return Color