Ejemplo n.º 1
0
        public void zoomRefresh()
        {
            curFrame = 0;
            Size size = new Size(BlockWidth * MainForm.Zoom, BlockHeight * MainForm.Zoom);

            Back = new Bitmap(BlockWidth * MainForm.Zoom, BlockHeight * MainForm.Zoom);
            Minimap.Init(BlockWidth, BlockHeight);
            PaintCurFrame();
            this.AutoScrollMinSize = size;
            this.Invalidate();
            started = true;
        }
Ejemplo n.º 2
0
        public void Init(Frame frame, bool frme)
        {
            BlockHeight = frame.Height;
            BlockWidth  = frame.Width;
            Frames.Clear();
            Frames.Add(frame);
            curFrame = 0;
            Size size = new Size(BlockWidth * MainForm.Zoom, BlockHeight * MainForm.Zoom);

            //Bricks = new Bitmap[3000];
            //BricksFade = new Bitmap[BlockWidth * MainForm.Zoom];
            Back = new Bitmap(BlockWidth * MainForm.Zoom, BlockHeight * MainForm.Zoom);
            Minimap.Init(BlockWidth, BlockHeight);
            PaintCurFrame();
            this.AutoScrollMinSize = size;
            this.Invalidate();
            started = true;
        }
Ejemplo n.º 3
0
        public void Init(Frame frame, bool frme)
        {
            BlockHeight = frame.Height;
            BlockWidth  = frame.Width;
            for (int i = 0; i < BlockHeight; ++i)
            {
                for (int j = 0; j < BlockWidth; ++j)
                {
                }
            }
            Frames.Clear();
            Frames.Add(frame);
            curFrame = 0;
            Size size = new Size(BlockWidth * 16, BlockHeight * 16);

            Back = new Bitmap(BlockWidth * 16, BlockHeight * 16);
            Minimap.Init(BlockWidth, BlockHeight);
            PaintCurFrame();
            this.AutoScrollMinSize = size;
            this.Invalidate();
            started = true;
        }