public interface PlatformImage
Modifier and Type | Method and Description |
---|---|
int |
getArgb(int x,
int y) |
void |
getPixels(int x,
int y,
int w,
int h,
WritablePixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
void |
getPixels(int x,
int y,
int w,
int h,
WritablePixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
<T extends java.nio.Buffer> |
getPixels(int x,
int y,
int w,
int h,
WritablePixelFormat<T> pixelformat,
T pixels,
int scanlineElems) |
float |
getPixelScale()
Gets the scale representing how large an area a 72DPI virtual
pixel covers in terms of the pixels of this image.
|
PixelFormat |
getPlatformPixelFormat() |
boolean |
isWritable() |
PlatformImage |
promoteToWritableImage() |
void |
setArgb(int x,
int y,
int argb) |
void |
setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
void |
setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
<T extends java.nio.Buffer> |
setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T pixels,
int scanlineBytes) |
void |
setPixels(int dstx,
int dsty,
int w,
int h,
PixelReader reader,
int srcx,
int srcy) |
float getPixelScale()
int getArgb(int x, int y)
x
- X coordinate of pixely
- Y coordinate of pixelvoid setArgb(int x, int y, int argb)
x
- X coordinate of pixely
- Y coordinate of pixelargbpre
- non-premultiplied pixel data to store in integer ARGB
component orderingPixelFormat getPlatformPixelFormat()
boolean isWritable()
PlatformImage promoteToWritableImage()
<T extends java.nio.Buffer> void getPixels(int x, int y, int w, int h, WritablePixelFormat<T> pixelformat, T pixels, int scanlineElems)
void getPixels(int x, int y, int w, int h, WritablePixelFormat<java.nio.ByteBuffer> pixelformat, byte[] pixels, int offset, int scanlineBytes)
void getPixels(int x, int y, int w, int h, WritablePixelFormat<java.nio.IntBuffer> pixelformat, int[] pixels, int offset, int scanlineInts)
<T extends java.nio.Buffer> void setPixels(int x, int y, int w, int h, PixelFormat<T> pixelformat, T pixels, int scanlineBytes)
void setPixels(int x, int y, int w, int h, PixelFormat<java.nio.ByteBuffer> pixelformat, byte[] pixels, int offset, int scanlineBytes)
void setPixels(int x, int y, int w, int h, PixelFormat<java.nio.IntBuffer> pixelformat, int[] pixels, int offset, int scanlineInts)
void setPixels(int dstx, int dsty, int w, int h, PixelReader reader, int srcx, int srcy)