C# Class SwfDotNet.IO.Tags.Types.RGBA

RGBA
Inheritance: RGBColor
Mostra file Open project: bladecoding/SwfExport Class Usage Examples

Public Properties

Property Type Description
alpha byte

Public Methods

Method Description
FromWinColor ( Color color ) : RGBA

Gets a RGB object from a windows color.

GetSizeOf ( ) : int

Gets the size of.

RGBA ( ) : System

Creates a new RGBA instance.

RGBA ( byte red, byte green, byte blue, byte alpha ) : System

Creates a new RGBA instance.

ReadData ( BufferedBinaryReader binaryReader ) : void

Reads the data from a binary reader.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

ToWinColor ( ) : Color

Transform a RGBA color to a win color

WriteTo ( BinaryWriter writer ) : void

Writes to a binary writer.

Method Details

FromWinColor() public static method

Gets a RGB object from a windows color.
public static FromWinColor ( Color color ) : RGBA
color Color Color.
return RGBA

GetSizeOf() public method

Gets the size of.
public GetSizeOf ( ) : int
return int

RGBA() public method

Creates a new RGBA instance.
public RGBA ( ) : System
return System

RGBA() public method

Creates a new RGBA instance.
public RGBA ( byte red, byte green, byte blue, byte alpha ) : System
red byte Red.
green byte Green.
blue byte Blue.
alpha byte Alpha.
return System

ReadData() public method

Reads the data from a binary reader.
public ReadData ( BufferedBinaryReader binaryReader ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
return void

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

ToWinColor() public method

Transform a RGBA color to a win color
public ToWinColor ( ) : Color
return Color

WriteTo() public method

Writes to a binary writer.
public WriteTo ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter Writer.
return void

Property Details

alpha public_oe property

Alpha
public byte alpha
return byte