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

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

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

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

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

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

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

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

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.
Результат System

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

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