C# Class MTScratchPad.Stroke

Show file Open project: RIT-Tool-Time/Cascade Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

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

Draw() public method

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

DrawLast() public method

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

Seal() public method

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