class Image extends Object
Modifier and Type | Field and Description |
---|---|
private static DirectColorModel |
rgbColorModel |
private static int[] |
sampleModelBitMasks |
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
(package private) static Object |
allocateRgbImage(int windowWidth,
int windowHeight,
int[] pBuffer,
int windowSize,
boolean backgroundTransparent) |
(package private) static Object |
createImage(Object data,
javajs.api.PlatformViewer vwr) |
(package private) static void |
disposeGraphics(Object graphicForText) |
(package private) static int[] |
drawImageToBuffer(Object gOffscreen,
Object imageOffscreen,
Object imageobj,
int width,
int height,
int bgcolor) |
(package private) static void |
flush(Object image) |
(package private) static Object |
getGraphics(Object image) |
(package private) static int |
getHeight(Object image) |
static javajs.api.GenericImageDialog |
getImageDialog(javajs.api.PlatformViewer vwr,
String title,
Map<String,javajs.api.GenericImageDialog> imageMap) |
(package private) static Object |
getStaticGraphics(Object image,
boolean backgroundTransparent) |
static int[] |
getTextPixels(String text,
javajs.awt.Font font3d,
Object gObj,
Object image,
int width,
int height,
int ascent) |
(package private) static int |
getWidth(Object image) |
(package private) static int[] |
grabPixels(Object imageobj,
int width,
int height,
int[] pixels,
int startRow,
int nRows) |
(package private) static Object |
newBufferedImage(int w,
int h) |
(package private) static Object |
newBufferedImage(Object image,
int w,
int h) |
(package private) static void |
waitForDisplay(javajs.api.PlatformViewer vwr,
Object image) |
private static final DirectColorModel rgbColorModel
private static final int[] sampleModelBitMasks
static void waitForDisplay(javajs.api.PlatformViewer vwr, Object image) throws InterruptedException
vwr
- image
- InterruptedException
static int getWidth(Object image)
static int getHeight(Object image)
static int[] grabPixels(Object imageobj, int width, int height, int[] pixels, int startRow, int nRows)
static int[] drawImageToBuffer(Object gOffscreen, Object imageOffscreen, Object imageobj, int width, int height, int bgcolor)
public static int[] getTextPixels(String text, javajs.awt.Font font3d, Object gObj, Object image, int width, int height, int ascent)
static Object newBufferedImage(int w, int h)
static Object allocateRgbImage(int windowWidth, int windowHeight, int[] pBuffer, int windowSize, boolean backgroundTransparent)
windowWidth
- windowHeight
- pBuffer
- windowSize
- backgroundTransparent
- static Object getStaticGraphics(Object image, boolean backgroundTransparent)
image
- backgroundTransparent
- static void flush(Object image)
static void disposeGraphics(Object graphicForText)