WritableImage or other surface containing writable pixels.
| Modifier and Type | Method and Description |
|---|---|
| public PixelFormat | Returns: thePixelFormat that best describes the underlying
pixelsThis method returns the |
| public void | |
| public void | |
| public < the type of the buffer T extends Buffer> void | setPixels(int
the X coordinate of the rectangular region to write x, int the Y coordinate of the rectangular region to write y, int the width of the rectangular region to write w, int the height of the rectangular region to write h, PixelFormat<T> the pixelformat, T PixelFormat object defining the format
to read the pixels from the buffera buffer of a type appropriate for the indicated
buffer, int PixelFormat objectthe distance between the pixel data for the
start of one row of data in the buffer to the start of the
next row of data. scanlineStride)Stores pixel data from a buffer into a rectangular region of the surface. |
| public void | setPixels(int
the X coordinate of the rectangular region to write x, int the Y coordinate of the rectangular region to write y, int the width of the rectangular region to write w, int the height of the rectangular region to write h, PixelFormat<ByteBuffer> the pixelformat, byte[] PixelFormat<ByteBuffer> object
defining the byte format to read the pixels from buffera byte array containing the pixel data to store buffer, int the offset into offset, int buffer to read the first
pixel datathe distance between the pixel data for the
start of one row of data in the buffer to the start of the
next row of data scanlineStride)Stores pixel data from a byte array into a rectangular region of the surface. |
| public void | setPixels(int
the X coordinate of the rectangular region to write x, int the Y coordinate of the rectangular region to write y, int the width of the rectangular region to write w, int the height of the rectangular region to write h, PixelFormat<IntBuffer> the pixelformat, int[] PixelFormat<IntBuffer> object
defining the int format to read the pixels from bufferan int array to containing the pixel data to store buffer, int the offset into offset, int buffer to read the first
pixel datathe distance between the pixel data for the
start of one row of data in the buffer to the start of the
next row of data scanlineStride)Stores pixel data from an int array into a rectangular region of the surface. |
| public void | setPixels(int
the X coordinate of the rectangular region to write dstx, int the Y coordinate of the rectangular region to write dsty, int the width of the rectangular region to write w, int the height of the rectangular region to write h, PixelReader the reader, int PixelReader used to get the pixel data
to writethe X coordinate of the data to read from srcx, int readerthe Y coordinate of the data to read from srcy)readerStores pixel data retrieved from a |
| getPixelFormat | back to summary |
|---|---|
| public PixelFormat This method returns the
| |
| setArgb | back to summary |
|---|---|
| public void setArgb(int x, int y, int argb) Stores pixel data for a color into the specified coordinates of the
surface.
The 32-bit integer
| |
| setColor | back to summary |
|---|---|
| public void setColor(int x, int y, Color c) Stores pixel data for a
| |
| setPixels | back to summary |
|---|---|
| public <T extends Buffer> void setPixels(int x, int y, int w, int h, PixelFormat<T> pixelformat, T buffer, int scanlineStride) Stores pixel data from a buffer into a rectangular region of the
surface.
The format of the pixels in the buffer is defined by the
| |
| setPixels | back to summary |
|---|---|
| public void setPixels(int x, int y, int w, int h, PixelFormat<ByteBuffer> pixelformat, byte[] buffer, int offset, int scanlineStride) Stores pixel data from a byte array into a rectangular region of the
surface.
The format of the pixels in the buffer is defined by the
| |
| setPixels | back to summary |
|---|---|
| public void setPixels(int x, int y, int w, int h, PixelFormat<IntBuffer> pixelformat, int[] buffer, int offset, int scanlineStride) Stores pixel data from an int array into a rectangular region of the
surface.
The format of the pixels in the buffer is defined by the
| |
| setPixels | back to summary |
|---|---|
| public void setPixels(int dstx, int dsty, int w, int h, PixelReader reader, int srcx, int srcy) Stores pixel data retrieved from a
for (int y = 0; y < h, y++) {
for (int x = 0; x < w; x++) {
setArgb(dstx + x, dsty + y,
reader.getArgb(srcx + x, srcy + y));
}
}
| |