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

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

Public Properties

Property Type Description
blue byte
green byte
red byte

Public Methods

Method Description
FromWinColor ( Color color ) : RGBColor

Gets a RGB or RGBA object from a windows color.

GetSizeOf ( ) : int

Gets the size of.

ReadData ( BufferedBinaryReader binaryReader ) : void

Reads the data from the binary reader.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

WriteTo ( BinaryWriter writer ) : void

Writes to a binary writer

Protected Methods

Method Description
RGBColor ( ) : System

Creates a new RGBColor instance.

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

Creates a new RGBColor instance.

Method Details

FromWinColor() public static method

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

GetSizeOf() public abstract method

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

RGBColor() protected method

Creates a new RGBColor instance.
protected RGBColor ( ) : System
return System

RGBColor() protected method

Creates a new RGBColor instance.
protected RGBColor ( 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 the 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

WriteTo() public method

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

Property Details

blue public property

Blue
public byte blue
return byte

green public property

Green
public byte green
return byte

red public property

Red
public byte red
return byte