Example #1
0
        public void load()
        {
            SelectTool(ToolType.Brush);

            hoverStatus.Text = "";
            imageStatus.Text = string.Format(LanguageManager.Get("GraphicsEditor", "imageStatus"), 8, img.getWidth(), img.getHeight());
        }
Example #2
0
        public void setImage(PalettedImage img)
        {
            this.imgEdit = img as PixelPalettedImage;
            this.img     = img;

            DrawBuffer = new Bitmap(img.getWidth(), img.getHeight());
            ZoomCache  = new Bitmap(img.getWidth() * 8, img.getHeight() * 8);
            RenderBuffer();
            SetZoomLevel(ZoomLevel);
            RenderZoomCache();
            drawingBox.Invalidate();
        }
Example #3
0
        public void setImage(PalettedImage img)
        {
            this.imgEdit = img as PixelPalettedImage;
            this.img = img;

            DrawBuffer = new Bitmap(img.getWidth(), img.getHeight());
            ZoomCache = new Bitmap(img.getWidth() * 8, img.getHeight() * 8);
            RenderBuffer();
            SetZoomLevel(ZoomLevel);
            RenderZoomCache();
            drawingBox.Invalidate();
        }