C# Class CrystalMpq.DataFormats.ArgbColor

显示文件 Open project: sgraf812/crystalmpq Class Usage Examples

Public Properties

Property Type Description
A byte
B byte
G byte
R byte

Public Methods

Method Description
ArgbColor ( byte r, byte g, byte b ) : System
ArgbColor ( byte r, byte g, byte b, byte a ) : System
ArgbColor ( ushort color ) : System

Private Methods

Method Description
CopyOpaque ( ArgbColor destination, ArgbColor source ) : void

Copies an ArgbColor into another, with forced opaque alpha.

CopyWithAlpha ( ArgbColor destination, ArgbColor source, byte alpha ) : void

Copies an ArgbColor into another, with forced opaque alpha.

DxtMergeHalves ( ArgbColor result, ArgbColor color1, ArgbColor color2 ) : void

Merges two colors for DXT decompression.

DxtMergeThirds ( ArgbColor result, ArgbColor minColor, ArgbColor maxColor ) : void

Merges two colors for DXT decompression.

Method Details

ArgbColor() public method

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

ArgbColor() public method

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

ArgbColor() public method

public ArgbColor ( ushort color ) : System
color ushort
return System

Property Details

A public_oe property

public byte A
return byte

B public_oe property

public byte B
return byte

G public_oe property

public byte G
return byte

R public_oe property

public byte R
return byte