C# Класс MTScratchPad.Stroke

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

Private Properties

Свойство Тип Описание

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

Метод Описание
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.

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

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

Adds a point to the stroke.
public Add ( Point pt ) : void
pt Point point to be added to the stroke
Результат void

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

Draws the complete stroke
public Draw ( Graphics graphics ) : void
graphics System.Drawing.Graphics the form's graphics object
Результат void

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

Draws only last segment of the stroke.
public DrawLast ( Graphics graphics ) : void
graphics System.Drawing.Graphics the drawing surface
Результат void

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

Seal the object.
To improve performance, Seal replaces the list with fixed array.
public Seal ( ) : void
Результат void