C# 클래스 Paint.ImageStateData

Image state data.
파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint 1 사용 예제들

공개 메소드들

메소드 설명
DecrementSavePoint ( ) : void

Decrements the save point by one - but taking into account wrapping past zero

ImageStateData ( int width, int height, int maxUndoRedoCount, int firstSavePoint, int lastSavePoint, int currentSavePoint ) : System

Initializes a new instance of the Paint.ImageStateData class.

IncrementSavePoint ( ) : void

Increments the save point by one - but taking into account wrapping back to zero

ResetLastSavePoint ( ) : void

Resets the last save point to be the same as the current save point e.g. if user presses undo and then alters the image then we need to throw away future redo images - i.e. reset the lastSavePoint that we can go back to as the current save point

메소드 상세

DecrementSavePoint() 공개 메소드

Decrements the save point by one - but taking into account wrapping past zero
public DecrementSavePoint ( ) : void
리턴 void

ImageStateData() 공개 메소드

Initializes a new instance of the Paint.ImageStateData class.
public ImageStateData ( int width, int height, int maxUndoRedoCount, int firstSavePoint, int lastSavePoint, int currentSavePoint ) : System
width int Width of the image
height int Height of the image
maxUndoRedoCount int How big is the undo/redo list
firstSavePoint int Which save point is the first one - ie. what is the furthest we can go back /// if we continually undo
lastSavePoint int Which save point is the last one - ie. indicates how many times we can press /// redo
currentSavePoint int The current save point
리턴 System

IncrementSavePoint() 공개 메소드

Increments the save point by one - but taking into account wrapping back to zero
public IncrementSavePoint ( ) : void
리턴 void

ResetLastSavePoint() 공개 메소드

Resets the last save point to be the same as the current save point e.g. if user presses undo and then alters the image then we need to throw away future redo images - i.e. reset the lastSavePoint that we can go back to as the current save point
public ResetLastSavePoint ( ) : void
리턴 void