C# Class SwfDotNet.IO.Tags.SetBackgroundColorTag

SetBackgroundColorTag object defines a background color of the swf file. It sets the background color displayed in every frame in the movie.

Although the color is specified using an RGB object the colour displayed is completely opaque.

The background color must be set before the first frame is displayed otherwise the background color defaults to white. This is typically the first object in a coder. If more than one SetBackgroundColorTag object is added to a swf then only first one sets the background color. Subsequent objects are ignored.

Inheritance: BaseTag
Datei anzeigen Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

SetBackgroundColorTag ( ) : System

Creates a new SetBackgroundColorTag instance.

SetBackgroundColorTag ( RGB rgbColor ) : System

Creates a new SetBackgroundColorTag instance.

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

Creates a new SetBackgroundColorTag instance.

UpdateData ( byte version ) : void

see base class

Method Details

ReadData() public method

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
return void

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

SetBackgroundColorTag() public method

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

SetBackgroundColorTag() public method

Creates a new SetBackgroundColorTag instance.
public SetBackgroundColorTag ( RGB rgbColor ) : System
rgbColor SwfDotNet.IO.Tags.Types.RGB Color of the RGB.
return System

SetBackgroundColorTag() public method

Creates a new SetBackgroundColorTag instance.
public SetBackgroundColorTag ( byte red, byte green, byte blue ) : System
red byte Red.
green byte Green.
blue byte Blue.
return System

UpdateData() public method

see base class
public UpdateData ( byte version ) : void
version byte
return void