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

RGB
Inheritance: RGBColor
Show file Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
FromWinColor ( Color color ) : RGB

Gets a RGB object from a windows color.

GetSizeOf ( ) : int

Gets the size of.

RGB ( ) : System

Creates a new RGB instance.

RGB ( byte red, byte green, byte blue ) : System

Creates a new RGB instance.

ReadData ( BufferedBinaryReader binaryReader ) : void

Reads the data from a binary reader.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

ToWinColor ( ) : Color

Transform a RGB object to a win color object

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 ) : RGB
color Color Color.
return RGB

GetSizeOf() public method

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

RGB() public method

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

RGB() public method

Creates a new RGB instance.
public RGB ( byte red, byte green, byte blue ) : System
red byte Red.
green byte Green.
blue byte Blue.
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 RGB object to a win color object
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