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

The CXForm is used to change the colour of a shape or button without changing the values in the original definition of the object.

Two types of transformation are supported: Add and Multiply

In Add transformations a value is added to each colour channel: newRed = red + addRedTerm newGreen = green + addGreenTerm newBlue = blue + addBlueTerm newAlpha = alpha + addAlphaTerm

In Multiply transformations each colour channel is multiplied by a given value: newRed = red * multiplyRedTerm newGreen = green * multiplyGreenTerm newBlue = blue * multiplyBlueTerm newAlpha = alpha * multiplyAlphaTerm

The CXForm was introduced in Flash 1.

Inheritance: ISwfSerializer
显示文件 Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
CXForm ( ) : System

Creates a new CXForm instance.

GetSizeOf ( ) : int

Gets the size of.

ReadData ( BufferedBinaryReader binaryReader ) : void

Reads the data.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

WriteTo ( BufferedBinaryWriter writer ) : void

Writes to.

Private Methods

Method Description
GetNumBits ( ) : uint

Gets the num bits.

Method Details

CXForm() public method

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

GetSizeOf() public method

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

ReadData() public method

Reads the data.
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.
public WriteTo ( BufferedBinaryWriter writer ) : void
writer SwfDotNet.IO.Utils.BufferedBinaryWriter Writer.
return void