C# 클래스 Paint.CanvasPlayback

Canvas playback.
상속: ICanvasPlayback, IDisposable
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint 1 사용 예제들

공개 메소드들

메소드 설명
CanvasPlayback ( string filename ) : System

Initializes a new instance of the Paint.CanvasPlayback class.

Close ( ) : void

Closes the file stream.

Dispose ( ) : void

Releases all resource used by the Paint.CanvasPlayback object. Implement IDisposable. Do not make this method virtual. A derived class should not be able to override this method.

Call Dispose when you are finished using the Paint.CanvasPlayback. The Dispose method leaves the Paint.CanvasPlayback in an unusable state. After calling Dispose, you must release all references to the Paint.CanvasPlayback so the garbage collector can reclaim the memory that the Paint.CanvasPlayback was occupying.

GetNextTouchPoints ( int maxTouchPoints ) : ITouchPointSizeColor[]

Gets the next set of touch points.

Restart ( ) : void

Reset the input stream to the beginning ready for starting the playback all over again

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.

비공개 메소드들

메소드 설명
CreateTouchPoint ( byte canvasRecorderCommand ) : ITouchPointSizeColor

Creates a TouchPoint based on the data in the commandByteArray

SetBrushSize ( ) : void

Sets the size of the brush based on the data in the commandByteArray

SetColor ( ) : void

Sets the color based on the data in the commandByteArray

메소드 상세

CanvasPlayback() 공개 메소드

Initializes a new instance of the Paint.CanvasPlayback class.
public CanvasPlayback ( string filename ) : System
filename string Name of the file containing all the playback commands
리턴 System

Close() 공개 메소드

Closes the file stream.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Releases all resource used by the Paint.CanvasPlayback object. Implement IDisposable. Do not make this method virtual. A derived class should not be able to override this method.
Call Dispose when you are finished using the Paint.CanvasPlayback. The Dispose method leaves the Paint.CanvasPlayback in an unusable state. After calling Dispose, you must release all references to the Paint.CanvasPlayback so the garbage collector can reclaim the memory that the Paint.CanvasPlayback was occupying.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.
protected Dispose ( bool disposing ) : void
disposing bool /// Disposing. ///
리턴 void

GetNextTouchPoints() 공개 메소드

Gets the next set of touch points.
public GetNextTouchPoints ( int maxTouchPoints ) : ITouchPointSizeColor[]
maxTouchPoints int Maximum number of touchpoints that should be retrieved
리턴 ITouchPointSizeColor[]

Restart() 공개 메소드

Reset the input stream to the beginning ready for starting the playback all over again
public Restart ( ) : void
리턴 void