Paint.ImageStateData.ImageStateData C# (CSharp) Method

ImageStateData() public method

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
return System
        public ImageStateData(
			int width,
			int height,
			int maxUndoRedoCount,
			int firstSavePoint = 0, 
		    int lastSavePoint = 0, 
			int currentSavePoint = 0)
        {
            this.MaxUndoRedoCount = maxUndoRedoCount;
            this.FirstSavePoint = firstSavePoint;
            this.LastSavePoint = lastSavePoint;
            this.CurrentSavePoint = currentSavePoint;
            this.Width = width;
            this.Height = height;
        }