public void load() { SelectTool(ToolType.Brush); hoverStatus.Text = ""; imageStatus.Text = string.Format(LanguageManager.Get("GraphicsEditor", "imageStatus"), 8, img.getWidth(), img.getHeight()); }
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(); }
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(); }