C# Class Paint.CanvasRecorder

Canvas recorder.
Inheritance: ICanvasRecorder
Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint

Public Methods

Method Description
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.

Private Methods

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

Method Details

Draw() public method

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
return void

Load() public method

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
return void

Save() public method

Save the Canvas to file ready for playback.
public Save ( string filename ) : void
filename string
return void