Exemple #1
0
        public ImageInfo(ToolPanel toolInfoPanel, String filePath)
        {
            ActionStack = new ActionStack();

            FilePath = filePath;

            SetupDefaultGrid();
            Load(filePath);
            SetupCanvas(toolInfoPanel);

            Modified = false;
        }
Exemple #2
0
        public ImageInfo( ToolPanel toolInfoPanel, String filePath )
        {
            ActionStack = new ActionStack();

            FilePath = filePath;

            SetupDefaultGrid();
            Load( filePath );
            SetupCanvas( toolInfoPanel );

            Modified = false;
        }
Exemple #3
0
        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;
        }
Exemple #4
0
        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;
        }
Exemple #5
0
 public void PushState()
 {
     ActionStack.Push(new ActionAnchor(this));
 }