public ImageInfo(ToolPanel toolInfoPanel, String filePath) { ActionStack = new ActionStack(); FilePath = filePath; SetupDefaultGrid(); Load(filePath); SetupCanvas(toolInfoPanel); Modified = false; }
public ImageInfo( ToolPanel toolInfoPanel, String filePath ) { ActionStack = new ActionStack(); FilePath = filePath; SetupDefaultGrid(); Load( filePath ); SetupCanvas( toolInfoPanel ); Modified = false; }
public ImageInfo(ToolPanel toolInfoPanel, int width, int height, String name = "untitled.png") { ActionStack = new ActionStack(); Size = new Size(width, height); FilePath = name; SetupDefaultGrid(); SetupCanvas(toolInfoPanel); Layers = new List <Layer>(); Layers.Add(new Layer(this)); Modified = true; }
public ImageInfo( ToolPanel toolInfoPanel, int width, int height, String name = "untitled.png" ) { ActionStack = new ActionStack(); Size = new Size( width, height ); FilePath = name; SetupDefaultGrid(); SetupCanvas( toolInfoPanel ); Layers = new List<Layer>(); Layers.Add( new Layer( this ) ); Modified = true; }
public void PushState() { ActionStack.Push(new ActionAnchor(this)); }