public class FXRobotImage extends Object
Modifier and Type | Method and Description |
---|---|
static FXRobotImage |
create(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
|
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.
|
String |
toString() |
public static FXRobotImage create(Buffer pixelBuffer, int width, int height, int scanlineStride)
public 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
- coordinateCopyright © 2020. All rights reserved.