C# Class SwfDotNet.IO.Tags.Types.CurvedEdgeRecord

CurvedEdgeRecord is used to define a curve. Curved lines are constructed using a Quadratic Bezier curve.

The curve is specified using two points relative to the current drawing position, an off-curve control point and an on-curve anchor point which defines the end-point of the curve.

To define a curve the points are defined as pairs of relative coordinates. The control point is specified relative to the current drawing point and the anchor point is specified relative to the control point. Once the line is drawn, the anchor point becomes the current drawing point.

The relative coordinates are specified in twips (where 20 twips = 1 pixel) and must be in the range -65536..65535.

The CurvedEdge record was introduced in Flash 1.

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

Méthodes publiques

Méthode Description
CurvedEdgeRecord ( ) : System

Creates a new CurvedEdgeRecord instance.

CurvedEdgeRecord ( int controlDeltaX, int controlDeltaY, int anchorDeltaX, int anchorDeltaY ) : System

Creates a new CurvedEdgeRecord instance.

GetBitSizeOf ( int currentLength ) : int

see ShapeRecord.GetBitSizeOf

ReadData ( BufferedBinaryReader binaryReader, byte flags ) : void

Reads the data.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

WriteTo ( BufferedBinaryWriter writer ) : void

Writes to a binary writer.

Private Methods

Méthode Description
GetNumBits ( ) : uint

Gets the num bits.

Method Details

CurvedEdgeRecord() public méthode

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

CurvedEdgeRecord() public méthode

Creates a new CurvedEdgeRecord instance.
public CurvedEdgeRecord ( int controlDeltaX, int controlDeltaY, int anchorDeltaX, int anchorDeltaY ) : System
controlDeltaX int The x-coordinate of the control point relative to the current drawing point.
controlDeltaY int The y-coordinate of the control point relative to the current drawing point.
anchorDeltaX int The x-coordinate of the anchor point relative to the control point.
anchorDeltaY int The y-coordinate of the anchor point relative to the control point.
Résultat System

GetBitSizeOf() public méthode

see ShapeRecord.GetBitSizeOf
public GetBitSizeOf ( int currentLength ) : int
currentLength int
Résultat int

ReadData() public méthode

Reads the data.
public ReadData ( BufferedBinaryReader binaryReader, byte flags ) : void
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader Binary reader.
flags byte Flags.
Résultat void

Serialize() public méthode

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

WriteTo() public méthode

Writes to a binary writer.
public WriteTo ( BufferedBinaryWriter writer ) : void
writer SwfDotNet.IO.Utils.BufferedBinaryWriter Writer.
Résultat void