C# Class Paint.CanvasRecorder

Canvas recorder.
Inheritance: ICanvasRecorder
Afficher le fichier Open project: RandolphBurt/MonoGame-iOS-SimplePaint

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

Load() public méthode

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
Résultat void

Save() public méthode

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