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

StraightEdgeRecord defines a straight line.

The line is drawn from the current drawing point to the end point specified in the StraightEdgeRecord object which is specified relative to the current drawing point. Once the line is drawn, the end of the line is now the current drawing point.

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

Lines are drawn with rounded corners and line ends. Different join and line end styles can be created by drawing line segments as a sequence of filled shapes. With 1 twip equal to 1/20th of a pixel this technique can easily be used to draw the narrowest of visible lines.

This tag was introduced in Flash 1.

Inheritance: EdgeRecord
Mostra file Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
GetBitSizeOf ( int currentLength ) : int

see ShapeRecord.GetBitSizeOf

ReadData ( BufferedBinaryReader binaryReader, byte flags ) : void

Reads the data.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

StraightEdgeRecord ( ) : System

Creates a new StraightEdgeRecord instance.

StraightEdgeRecord ( int deltaX, int deltaY ) : System

Creates a new StraightEdgeRecord instance.

WriteTo ( BufferedBinaryWriter writer ) : void

Writes to.

Private Methods

Method Description
GetNumBits ( ) : uint

Gets the num bits.

HasGeneralLine ( ) : bool

Determines whether [has general line].

HasVerticalLine ( ) : bool

Determines whether [has vertical line].

Method Details

GetBitSizeOf() public method

see ShapeRecord.GetBitSizeOf
public GetBitSizeOf ( int currentLength ) : int
currentLength int
return int

ReadData() public method

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

Serialize() public method

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

StraightEdgeRecord() public method

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

StraightEdgeRecord() public method

Creates a new StraightEdgeRecord instance.
public StraightEdgeRecord ( int deltaX, int deltaY ) : System
deltaX int Delta X.
deltaY int Delta Y.
return System

WriteTo() public method

Writes to.
public WriteTo ( BufferedBinaryWriter writer ) : void
writer SwfDotNet.IO.Utils.BufferedBinaryWriter Writer.
return void