C# Class MTScratchPad.Stroke

Afficher le fichier Open project: RIT-Tool-Time/Cascade Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Add ( Point pt ) : void

Adds a point to the stroke.

Draw ( Graphics graphics ) : void

Draws the complete stroke

DrawLast ( Graphics graphics ) : void

Draws only last segment of the stroke.

Seal ( ) : void

Seal the object.

To improve performance, Seal replaces the list with fixed array.

Method Details

Add() public méthode

Adds a point to the stroke.
public Add ( Point pt ) : void
pt Point point to be added to the stroke
Résultat void

Draw() public méthode

Draws the complete stroke
public Draw ( Graphics graphics ) : void
graphics System.Drawing.Graphics the form's graphics object
Résultat void

DrawLast() public méthode

Draws only last segment of the stroke.
public DrawLast ( Graphics graphics ) : void
graphics System.Drawing.Graphics the drawing surface
Résultat void

Seal() public méthode

Seal the object.
To improve performance, Seal replaces the list with fixed array.
public Seal ( ) : void
Résultat void