Create our image through the image manager.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2141 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
//
|
//
|
||||||
// $Id: VolatileMirage.java,v 1.2 2003/01/14 00:59:55 mdb Exp $
|
// $Id: VolatileMirage.java,v 1.3 2003/01/14 04:18:25 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.image;
|
package com.threerings.media.image;
|
||||||
|
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Graphics2D;
|
import java.awt.Graphics2D;
|
||||||
import java.awt.GraphicsConfiguration;
|
|
||||||
import java.awt.Rectangle;
|
import java.awt.Rectangle;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.awt.image.VolatileImage;
|
import java.awt.image.VolatileImage;
|
||||||
@@ -105,10 +104,9 @@ public abstract class VolatileMirage implements Mirage
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create a new, compatible, volatile image
|
// create a new, compatible, volatile image
|
||||||
GraphicsConfiguration gc = _imgr.getGraphicsConfiguration();
|
// _image = _imgr.createVolatileImage(
|
||||||
// _image = gc.createCompatibleVolatileImage(
|
// _bounds.width, _bounds.height, getTransparency());
|
||||||
// _bounds.width, _bounds.height);
|
_image = _imgr.createImage(
|
||||||
_image = gc.createCompatibleImage(
|
|
||||||
_bounds.width, _bounds.height, getTransparency());
|
_bounds.width, _bounds.height, getTransparency());
|
||||||
|
|
||||||
// render our source image into the volatile image
|
// render our source image into the volatile image
|
||||||
|
|||||||
Reference in New Issue
Block a user