final class RTImage extends PrismImage implements ResourceFactoryListener
Modifier and Type | Field and Description |
---|---|
private int |
height |
private boolean |
listenerAdded |
private java.nio.ByteBuffer |
pixelBuffer |
private float |
pixelScale |
private RTTexture |
txt |
private int |
width |
Constructor and Description |
---|
RTImage(int w,
int h,
float pixelScale) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
dispose() |
(package private) void |
draw(Graphics g,
int dstx1,
int dsty1,
int dstx2,
int dsty2,
int srcx1,
int srcy1,
int srcx2,
int srcy2) |
protected void |
drawPixelBuffer() |
void |
factoryReleased()
Called when the factory is released.
|
void |
factoryReset()
Called when the factory is lost and about to be reset.
|
(package private) Graphics |
getGraphics() |
int |
getHeight() |
(package private) Image |
getImage() |
java.nio.ByteBuffer |
getPixelBuffer() |
float |
getPixelScale() |
private RTTexture |
getTexture() |
int |
getWidth() |
deref, getPlatformImage, toBufferedImage, toData, toDataURL
flushRQ, getFileExtension, getImage, isDirty, isNull, setFileExtension, setRQ
private RTTexture txt
private final int width
private final int height
private boolean listenerAdded
private java.nio.ByteBuffer pixelBuffer
private float pixelScale
Image getImage()
getImage
in class PrismImage
Graphics getGraphics()
getGraphics
in class PrismImage
private RTTexture getTexture()
void draw(Graphics g, int dstx1, int dsty1, int dstx2, int dsty2, int srcx1, int srcy1, int srcx2, int srcy2)
draw
in class PrismImage
void dispose()
dispose
in class PrismImage
public java.nio.ByteBuffer getPixelBuffer()
getPixelBuffer
in class WCImage
protected void drawPixelBuffer()
drawPixelBuffer
in class WCImage
public void factoryReset()
ResourceFactoryListener
factoryReset
in interface ResourceFactoryListener
public void factoryReleased()
ResourceFactoryListener
factoryReleased
in interface ResourceFactoryListener
public float getPixelScale()
getPixelScale
in class WCImage