ARGB BufferedImage を作成しました。今、透明な背景で再初期化したいと思います。次のコードを試しました:
(...)
if( this.offscreen==null ||
this.offscreen.getWidth()!= dim.width ||
this.offscreen.getHeight()!= dim.height )
{
this.offscreen=new BufferedImage(
dim.width,
dim.height,
BufferedImage.TYPE_INT_ARGB);
}
Graphics2D g=this.offscreen.createGraphics();
g.setColor(new Color(255,255,255,0));
g.clearRect(0, 0, dim.width, dim.height);
(...)
しかし、うまくいきませんでした。
これを行う方法について何か考えはありますか?
ありがとう !