C# Класс Praeclarum.Graphics.Stroke

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

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

Метод Описание
AddPoint ( PointF rawPoint ) : void
AddPoints ( IEnumerable rawPoints ) : void
Draw ( IGraphics g, float thickness = DefaultThickness ) : void
GetDirectionSegments ( int startIndex, int resolution = 20 ) : Praeclarum.Graphics.StrokeSegment[]
GetIntersectionWith ( Stroke other ) : IntersectionInfo
GetResolutionSimplifiedSegments ( int startIndex, int resolution ) : Praeclarum.Graphics.StrokeSegment[]
GetSegment ( int startIndex ) : StrokeSegment
GetSegment ( int startIndex, int lastIndex ) : StrokeSegment
GetSimplifiedSegments ( int startIndex, float error, int maxSegments ) : Praeclarum.Graphics.StrokeSegment[]
GetSimplifiedStroke ( int startIndex, float error, int maxSegments ) : Stroke
IntersectsWith ( LineSegmentF lineSegment ) : bool
IntersectsWith ( Stroke other ) : bool
RecognizeHorizontalLine ( int startIndex, int &endIndex ) : bool
RecognizeLoop ( int startIndex, int &lastIndex ) : bool
RecognizeVerticalLine ( int startIndex, int &lastIndex ) : bool
Stroke ( ) : System
Stroke ( System.DateTime createdTime ) : System

Защищенные методы

Метод Описание
Draw ( IGraphics g, int startIndex, int length, float thickness ) : void

Приватные методы

Метод Описание
RemoveInitialFlourish ( ) : int

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

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

public AddPoint ( PointF rawPoint ) : void
rawPoint PointF
Результат void

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

public AddPoints ( IEnumerable rawPoints ) : void
rawPoints IEnumerable
Результат void

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

public Draw ( IGraphics g, float thickness = DefaultThickness ) : void
g IGraphics
thickness float
Результат void

Draw() защищенный Метод

protected Draw ( IGraphics g, int startIndex, int length, float thickness ) : void
g IGraphics
startIndex int
length int
thickness float
Результат void

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

public GetDirectionSegments ( int startIndex, int resolution = 20 ) : Praeclarum.Graphics.StrokeSegment[]
startIndex int
resolution int
Результат Praeclarum.Graphics.StrokeSegment[]

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

public GetIntersectionWith ( Stroke other ) : IntersectionInfo
other Stroke
Результат IntersectionInfo

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

public GetResolutionSimplifiedSegments ( int startIndex, int resolution ) : Praeclarum.Graphics.StrokeSegment[]
startIndex int
resolution int
Результат Praeclarum.Graphics.StrokeSegment[]

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

public GetSegment ( int startIndex ) : StrokeSegment
startIndex int
Результат StrokeSegment

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

public GetSegment ( int startIndex, int lastIndex ) : StrokeSegment
startIndex int
lastIndex int
Результат StrokeSegment

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

public GetSimplifiedSegments ( int startIndex, float error, int maxSegments ) : Praeclarum.Graphics.StrokeSegment[]
startIndex int
error float
maxSegments int
Результат Praeclarum.Graphics.StrokeSegment[]

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

public GetSimplifiedStroke ( int startIndex, float error, int maxSegments ) : Stroke
startIndex int
error float
maxSegments int
Результат Stroke

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

public IntersectsWith ( LineSegmentF lineSegment ) : bool
lineSegment LineSegmentF
Результат bool

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

public IntersectsWith ( Stroke other ) : bool
other Stroke
Результат bool

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

public RecognizeHorizontalLine ( int startIndex, int &endIndex ) : bool
startIndex int
endIndex int
Результат bool

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

public RecognizeLoop ( int startIndex, int &lastIndex ) : bool
startIndex int
lastIndex int
Результат bool

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

public RecognizeVerticalLine ( int startIndex, int &lastIndex ) : bool
startIndex int
lastIndex int
Результат bool

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

public Stroke ( ) : System
Результат System

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

public Stroke ( System.DateTime createdTime ) : System
createdTime System.DateTime
Результат System