int w = (int) (drawingWidth * zoom), h = (int) (drawingHeight * zoom);
int w = (int) (drawingWidth * zoom) + 1, h = (int) (drawingHeight * zoom) + 1;
    protected void initGraphics()    {        this.drawingWidth = img.getWidth(this);        this.drawingHeight = img.getHeight(this);        int w = (int) (drawingWidth * zoom), h = (int) (drawingHeight * zoom);        this.setPreferredSize(new Dimension(w, h));        repaint();        //		Graphics g = this.getGraphics();        //		g.drawImage(img, 0, 0, w, h, Color.BLACK, this);    }