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
파일 보기 프로젝트 열기: bladecoding/SwfExport 1 사용 예제들

공개 메소드들

메소드 설명
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