Ejemplo n.º 1
0
        public ImageInfo(ToolPanel toolInfoPanel, String filePath)
        {
            ActionStack = new ActionStack();

            FilePath = filePath;

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

            Modified = false;
        }
Ejemplo n.º 2
0
        public ImageInfo( ToolPanel toolInfoPanel, String filePath )
        {
            ActionStack = new ActionStack();

            FilePath = filePath;

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

            Modified = false;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 5
0
 public void PushState()
 {
     ActionStack.Push(new ActionAnchor(this));
 }