public class FXRobotImage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
height |
private java.nio.IntBuffer |
pixelBuffer |
private int |
scanlineStride |
private int |
width |
Modifier | Constructor and Description |
---|---|
private |
FXRobotImage(java.nio.Buffer pixelBuffer,
int width,
int height,
int scanlineStride) |
Modifier and Type | Method and Description |
---|---|
static FXRobotImage |
create(java.nio.Buffer pixelBuffer,
int width,
int height,
int scanlineStride) |
int |
getArgb(int x,
int y)
Returns pixel in IntArgb format (non-premultiplied).
|
int |
getArgbPre(int x,
int y)
Returns pixel (in IntArgbPre) format (Argb premultiplied).
|
int |
getHeight()
Height of the image
|
java.nio.Buffer |
getPixelBuffer()
Returns
Buffer which holds the data. |
int |
getPixelStride()
Returns pixel stride of this image in bytes.
|
int |
getScanlineStride()
Returns scanline stride of this image in bytes
|
int |
getWidth()
Width of the image.
|
java.lang.String |
toString() |
private final java.nio.IntBuffer pixelBuffer
private final int width
private final int height
private final int scanlineStride
private FXRobotImage(java.nio.Buffer pixelBuffer, int width, int height, int scanlineStride)
public static FXRobotImage create(java.nio.Buffer pixelBuffer, int width, int height, int scanlineStride)
public java.nio.Buffer getPixelBuffer()
Buffer
which holds the data.Buffer
holding the data for this imagepublic int getWidth()
public int getHeight()
public int getScanlineStride()
public int getPixelStride()
public int getArgbPre(int x, int y)
x
- coordinatey
- coordinatepublic int getArgb(int x, int y)
x
- coordinatey
- coordinatepublic java.lang.String toString()
toString
in class java.lang.Object