C# 클래스 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.

상속: EdgeRecord
파일 보기 프로젝트 열기: bladecoding/SwfExport 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
GetNumBits ( ) : uint

Gets the num bits.

HasGeneralLine ( ) : bool

Determines whether [has general line].

HasVerticalLine ( ) : bool

Determines whether [has vertical line].

메소드 상세

GetBitSizeOf() 공개 메소드

see ShapeRecord.GetBitSizeOf
public GetBitSizeOf ( int currentLength ) : int
currentLength int
리턴 int

ReadData() 공개 메소드

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

Serialize() 공개 메소드

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

StraightEdgeRecord() 공개 메소드

Creates a new StraightEdgeRecord instance.
public StraightEdgeRecord ( ) : System
리턴 System

StraightEdgeRecord() 공개 메소드

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

WriteTo() 공개 메소드

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