C# Класс Paint.CanvasRecorder

Canvas recorder.
Наследование: ICanvasRecorder
Показать файл Открыть проект

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

Метод Описание
Draw ( List touchPoints ) : void

Draw the latest updates to our image/render target. The list of all gestures / locations touched by the user since the last update

Load ( string filename ) : void

Load an existing playback file - we will probably end up adding some more commands and resaving e.g. someone has pressed 'redo' so we are reloading an existing file.

Save ( string filename ) : void

Save the Canvas to file ready for playback.

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

Метод Описание
RecordBrushSizeChange ( Rectangle brush ) : void

Records the brush size change as a command

RecordColorChange ( Color color ) : void

Records the color change as a command

RecordTouchPoint ( ITouchPointSizeColor touch ) : void

Records the touch point as a command

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

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

Draw the latest updates to our image/render target. The list of all gestures / locations touched by the user since the last update
public Draw ( List touchPoints ) : void
touchPoints List
Результат void

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

Load an existing playback file - we will probably end up adding some more commands and resaving e.g. someone has pressed 'redo' so we are reloading an existing file.
public Load ( string filename ) : void
filename string
Результат void

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

Save the Canvas to file ready for playback.
public Save ( string filename ) : void
filename string
Результат void