C# Class SwfDotNet.IO.Tags.DefineShapeTag

DefineShapeTag defines a shape to be displayed.

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 a solid 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 1.

Inheritance: DefineShape
Afficher le fichier Open project: bladecoding/SwfExport Class Usage Examples

Méthodes publiques

Méthode Description
DefineShapeTag ( ) : System

Creates a new DefineShapeTag instance.

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

Creates a new DefineShapeTag instance.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

Method Details

DefineShapeTag() public méthode

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

DefineShapeTag() public méthode

Creates a new DefineShapeTag instance.
public DefineShapeTag ( 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.
Résultat System

Serialize() public méthode

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