bgcolor = bg;
    public PainterThread (GdkGraphics2D g, Image im, AffineTransform xf)    {      image = im;      xform = xf;      this.gr = (GdkGraphics2D) g.create ();      new Thread (this).start ();    }