static class WritablePixelFormat.IntArgb extends WritablePixelFormat<java.nio.IntBuffer>
PixelFormat.Type| Modifier and Type | Method and Description |
|---|---|
int |
getArgb(java.nio.IntBuffer buf,
int x,
int y,
int scanlineStride)
Reads a 32-bit integer representation of the color from the buffer
at the specified coordinates.
|
boolean |
isPremultiplied() |
void |
setArgb(java.nio.IntBuffer buf,
int x,
int y,
int scanlineStride,
int argb)
Stores a 32-bit integer representation of the color in the buffer
at the specified coordinates.
|
isWritablecreateByteIndexedInstance, createByteIndexedPremultipliedInstance, getByteBgraInstance, getByteBgraPreInstance, getByteRgbInstance, getIntArgbInstance, getIntArgbPreInstance, getTypepublic boolean isPremultiplied()
isPremultiplied in class PixelFormat<java.nio.IntBuffer>public int getArgb(java.nio.IntBuffer buf,
int x,
int y,
int scanlineStride)
PixelFormatbuf.get(0) would return the pixel information for the
pixel at coordinates (0, 0).
The scanlineStride parameter defines the distance from the pixel
data at the start of one row to the pixel data at the start of the
immediately following row at the next higher Y coordinate. Usually,
scanlineStride is the same as the width of the image multiplied
by the number of data elements per pixel (1 for the case of the
integer and indexed formats, or 3 or 4 in the case of the byte
formats), but some images may have further padding between rows for
alignment or other purposes.getArgb in class PixelFormat<java.nio.IntBuffer>buf - the buffer of pixel datax - the X coordinate of the pixel to be ready - the Y coordinate of the pixel to be readscanlineStride - the number of buffer elements between the
start of adjacent pixel rows in the bufferType.INT_ARGB pixel formatpublic void setArgb(java.nio.IntBuffer buf,
int x,
int y,
int scanlineStride,
int argb)
WritablePixelFormatbuf.get(0) would return the pixel information for the
pixel at coordinates (0, 0).
The scanlineStride parameter defines the distance from the pixel
data at the start of one row to the pixel data at the start of the
immediately following row at the next higher Y coordinate. Usually,
scanlineStride is the same as the width of the image multiplied
by the number of data elements per pixel (1 for the case of the
integer and indexed formats, or 3 or 4 in the case of the byte
formats), but some images may have further padding between rows for
alignment or other purposes.setArgb in class WritablePixelFormat<java.nio.IntBuffer>buf - the buffer of pixel datax - the X coordinate of the pixel to be ready - the Y coordinate of the pixel to be readscanlineStride - the number of buffer elements between the
start of adjacent pixel rows in the bufferargb - a 32-bit value with the color to be stored in the pixel
in a format similar to the Type.INT_ARGB pixel formatCopyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.