C# Класс 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.

Наследование: ISwfSerializer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetNumBits ( ) : uint

Gets the num bits.

Описание методов

CXForm() публичный Метод

Creates a new CXForm instance.
public CXForm ( ) : System
Результат System

GetSizeOf() публичный Метод

Gets the size of.
public GetSizeOf ( ) : int
Результат int

ReadData() публичный Метод

Reads the data.
public ReadData ( BufferedBinaryReader binaryReader ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
Результат void

Serialize() публичный Метод

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
Результат void

WriteTo() публичный Метод

Writes to.
public WriteTo ( BufferedBinaryWriter writer ) : void
writer SwfDotNet.IO.Utils.BufferedBinaryWriter Writer.
Результат void