C# 클래스 Paint.CanvasRecorder

Canvas recorder.
상속: ICanvasRecorder
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint

공개 메소드들

메소드 설명
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