C# Class CSharpUtils.ColorFormat

Show file Open project: soywiz/csharputils Class Usage Examples

Public Properties

Property Type Description
Alpha Component
Blue Component
Green Component
Red Component
TotalBytes int

Public Methods

Method Description
Decode ( uint Data, byte &R, byte &G, byte &B, byte &A ) : void
Encode ( byte R, byte G, byte B, byte A ) : uint

Method Details

Decode() public method

public Decode ( uint Data, byte &R, byte &G, byte &B, byte &A ) : void
Data uint
R byte
G byte
B byte
A byte
return void

Encode() public method

public Encode ( byte R, byte G, byte B, byte A ) : uint
R byte
G byte
B byte
A byte
return uint

Property Details

Alpha public property

public Component Alpha
return Component

Blue public property

public Component Blue
return Component

Green public property

public Component Green
return Component

Red public property

public Component Red
return Component

TotalBytes public property

public int TotalBytes
return int