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
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetNumBits ( ) : uint

Gets the num bits.

Method Details

CXForm() public méthode

Creates a new CXForm instance.
public CXForm ( ) : System
Résultat System

GetSizeOf() public méthode

Gets the size of.
public GetSizeOf ( ) : int
Résultat int

ReadData() public méthode

Reads the data.
public ReadData ( BufferedBinaryReader binaryReader ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
Résultat void

Serialize() public méthode

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Résultat void

WriteTo() public méthode

Writes to.
public WriteTo ( BufferedBinaryWriter writer ) : void
writer SwfDotNet.IO.Utils.BufferedBinaryWriter Writer.
Résultat void