C# Class SwfDotNet.IO.Tags.DefineShape3Tag

DefineShape3Tag defines a transparent shape to be displayed.

It extends the functionality of the DefineShape2Tag class by supporting transparent colors.

The shape defines a path containing a mix of straight and curved edges and pen move actions. A path need not be contiguous. When the shape is drawn the ShapeStyle object selects the line and fill styles, from the respective array, to be used. ShapeStyle objects can be defined in the shape at any time to change the styles being used. The fill style used can either be an area of pure color, a bitmap image or a gradient. The line style specifies the color and thickness of the line drawn around the shape outline. For both line and fill styles the selected style may be undefined, allowing the shape to be drawn without an outline or left unfilled.

This tag was introduced in Flash 3.

Inheritance: DefineShape
Show file Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
DefineShape3Tag ( ) : System

Creates a new DefineShape3Tag instance.

DefineShape3Tag ( ushort shapeId, Rect rect, ShapeWithStyle shape ) : System

Creates a new DefineShape3Tag instance.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

Method Details

DefineShape3Tag() public method

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

DefineShape3Tag() public method

Creates a new DefineShape3Tag instance.
public DefineShape3Tag ( ushort shapeId, Rect rect, ShapeWithStyle shape ) : System
shapeId ushort Shape id.
rect SwfDotNet.IO.Tags.Types.Rect Rect.
shape SwfDotNet.IO.Tags.Types.ShapeWithStyle Shape.
return System

Serialize() public method

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