Пример #1
0
        public ImageInfo(ToolPanel toolInfoPanel, String filePath)
        {
            ActionStack = new ActionStack();

            FilePath = filePath;

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

            Modified = false;
        }
Пример #2
0
        public ImageInfo( ToolPanel toolInfoPanel, String filePath )
        {
            ActionStack = new ActionStack();

            FilePath = filePath;

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

            Modified = false;
        }
Пример #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;
        }
Пример #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;
        }
Пример #5
0
 public void PushState()
 {
     ActionStack.Push(new ActionAnchor(this));
 }