ByteBuffer and IntBuffer are used.
PixelFormat object defines the layout of data for a pixel of
a given format.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| public static enum | PixelFormat.
An enum describing the in-array storage format of a single pixel
managed by a |
| Modifier and Type | Field and Description |
|---|---|
| private PixelFormat. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static PixelFormat | Returns: aPixelFormat<ByteBuffer> describing the indicated
pixel format with the specified list of non-premultiplied colorsan colors)int[] array of 32-bit color values in
the INT_ARGB formatCreates a |
| public static PixelFormat | Returns: aPixelFormat<ByteBuffer> describing the indicated
pixel format with the specified list of premultiplied colorsan colors)int[] array of 32-bit color values in
the INT_ARGB_PRE formatCreates a |
| public abstract int | Returns: a 32-bit value with the color of the pixel in a format similar to theINT_ARGB pixel formatthe buffer of pixel data buf, int the X coordinate of the pixel to be read x, int the Y coordinate of the pixel to be read y, int the number of buffer elements between the
start of adjacent pixel rows in the buffer scanlineStride)Reads pixel data from the buffer at the specified coordinates and
converts it to a 32-bit integer representation of the color in the
|
| public static WritablePixelFormat | Returns: aWritablePixelFormat<ByteBuffer> describing the
indicated pixel formatReturns a |
| public static WritablePixelFormat | Returns: aWritablePixelFormat<ByteBuffer> describing the
indicated pixel formatReturns a |
| public static PixelFormat | Returns: aPixelFormat<ByteBuffer> describing the
indicated pixel formatReturns a |
| public static WritablePixelFormat | Returns: aWritabelPixelFormat<IntBuffer> describing the
indicated pixel formatReturns a |
| public static WritablePixelFormat | Returns: aWritabelPixelFormat<IntBuffer> describing the
indicated pixel formatReturns a |
| public PixelFormat. | Returns: theType enum of the pixelsReturns the enum representing the storage format of the pixels
managed by this |
| public abstract boolean | Returns: true iff the managed color components are premultiplied by alphaReturns true iff the color components decoded (or encoded) by this format are pre-multiplied by the alpha component for more efficient blending calculations. |
| public abstract boolean | Returns: true iff thisPixelFormat can convert colors to
pixel dataReturns true iff this |
| pack-priv static int | |
| pack-priv static int |
| type | back to summary |
|---|---|
| private PixelFormat. | |
| PixelFormat | back to summary |
|---|---|
| pack-priv PixelFormat(PixelFormat. | |
| createByteIndexedInstance | back to summary |
|---|---|
| public static PixelFormat Creates a Pixels in this format can be decoded using the following sample code:
| |
| createByteIndexedPremultipliedInstance | back to summary |
|---|---|
| public static PixelFormat Creates a Pixels in this format can be decoded using the following sample code:
| |
| getArgb | back to summary |
|---|---|
| public abstract int getArgb(T buf, int x, int y, int scanlineStride) Reads pixel data from the buffer at the specified coordinates and
converts it to a 32-bit integer representation of the color in the
The color components can be extracted from the returned integer using the following sample code:
int alpha = ((retval >> 24) & 0xff);
int red = ((retval >> 16) & 0xff);
int green = ((retval >> 8) & 0xff);
int blue = ((retval ) & 0xff);
| |
| getByteBgraInstance | back to summary |
|---|---|
| public static WritablePixelFormat Returns a Pixels in this format can be decoded using the following sample code:
| |
| getByteBgraPreInstance | back to summary |
|---|---|
| public static WritablePixelFormat Returns a Pixels in this format can be decoded using the following sample code:
| |
| getByteRgbInstance | back to summary |
|---|---|
| public static PixelFormat Returns a Pixels in this format can be decoded using the following sample code:
| |
| getIntArgbInstance | back to summary |
|---|---|
| public static WritablePixelFormat Returns a Pixels in this format can be decoded using the following sample code:
| |
| getIntArgbPreInstance | back to summary |
|---|---|
| public static WritablePixelFormat Returns a Pixels in this format can be decoded using the following sample code:
| |
| getType | back to summary |
|---|---|
| public PixelFormat. Returns the enum representing the storage format of the pixels
managed by this
| |
| isPremultiplied | back to summary |
|---|---|
| public abstract boolean isPremultiplied() Returns true iff the color components decoded (or encoded) by this format are pre-multiplied by the alpha component for more efficient blending calculations.
| |
| isWritable | back to summary |
|---|---|
| public abstract boolean isWritable() Returns true iff this
| |
| NonPretoPre | back to summary |
|---|---|
| pack-priv static int NonPretoPre(int nonpre) | |
| PretoNonPre | back to summary |
|---|---|
| pack-priv static int PretoNonPre(int pre) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final PixelFormat. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getArgb(ByteBuffer buf, int x, int y, int scanlineStride)
Implements abstract javafx. Reads pixel data from the buffer at the specified coordinates and
converts it to a 32-bit integer representation of the color in the
|
| public boolean | isPremultiplied()
Implements abstract javafx. Returns true iff the color components decoded (or encoded) by this format are pre-multiplied by the alpha component for more efficient blending calculations. |
| public boolean | isWritable()
Implements abstract javafx. Returns true iff this |
| instance | back to summary |
|---|---|
| pack-priv static final PixelFormat. | |
| ByteRgb | back to summary |
|---|---|
| private ByteRgb() | |
| getArgb | back to summary |
|---|---|
| public int getArgb(ByteBuffer buf, int x, int y, int scanlineStride) Implements abstract javafx. Doc from javafx. Reads pixel data from the buffer at the specified coordinates and
converts it to a 32-bit integer representation of the color in the
The color components can be extracted from the returned integer using the following sample code:
int alpha = ((retval >> 24) & 0xff);
int red = ((retval >> 16) & 0xff);
int green = ((retval >> 8) & 0xff);
int blue = ((retval ) & 0xff);
| |
| isPremultiplied | back to summary |
|---|---|
| public boolean isPremultiplied() Implements abstract javafx. Doc from javafx. Returns true iff the color components decoded (or encoded) by this format are pre-multiplied by the alpha component for more efficient blending calculations.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable() Implements abstract javafx. Doc from javafx. Returns true iff this
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | |
| pack-priv int[] | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static PixelFormat | |
| public int | getArgb(ByteBuffer buf, int x, int y, int scanlineStride)
Implements abstract javafx. Reads pixel data from the buffer at the specified coordinates and
converts it to a 32-bit integer representation of the color in the
|
| pack-priv int[] | |
| pack-priv int[] | |
| public boolean | isPremultiplied()
Implements abstract javafx. Returns true iff the color components decoded (or encoded) by this format are pre-multiplied by the alpha component for more efficient blending calculations. |
| public boolean | isWritable()
Implements abstract javafx. Returns true iff this |
| nonprecolors | back to summary |
|---|---|
| pack-priv int[] nonprecolors | |
| precolors | back to summary |
|---|---|
| pack-priv int[] precolors | |
| premult | back to summary |
|---|---|
| pack-priv boolean premult | |
| IndexedPixelFormat | back to summary |
|---|---|
| private IndexedPixelFormat(PixelFormat. | |
| createByte | back to summary |
|---|---|
| pack-priv static PixelFormat | |
| getArgb | back to summary |
|---|---|
| public int getArgb(ByteBuffer buf, int x, int y, int scanlineStride) Implements abstract javafx. Doc from javafx. Reads pixel data from the buffer at the specified coordinates and
converts it to a 32-bit integer representation of the color in the
The color components can be extracted from the returned integer using the following sample code:
int alpha = ((retval >> 24) & 0xff);
int red = ((retval >> 16) & 0xff);
int green = ((retval >> 8) & 0xff);
int blue = ((retval ) & 0xff);
| |
| getNonPreColors | back to summary |
|---|---|
| pack-priv int[] getNonPreColors() | |
| getPreColors | back to summary |
|---|---|
| pack-priv int[] getPreColors() | |
| isPremultiplied | back to summary |
|---|---|
| public boolean isPremultiplied() Implements abstract javafx. Doc from javafx. Returns true iff the color components decoded (or encoded) by this format are pre-multiplied by the alpha component for more efficient blending calculations.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable() Implements abstract javafx. Doc from javafx. Returns true iff this
| |
PixelFormat.
| Modifier and Type | Field and Description |
|---|---|
| public static final PixelFormat. | BYTE_BGRA
The pixels are stored in adjacent bytes with the non-premultiplied components stored in order of increasing index: blue, green, red, alpha. |
| public static final PixelFormat. | BYTE_BGRA_PRE
The pixels are stored in adjacent bytes with the premultiplied components stored in order of increasing index: blue, green, red, alpha. |
| public static final PixelFormat. | BYTE_INDEXED
The pixel colors are referenced by byte indices stored in the
pixel array, with the byte interpreted as an unsigned index into
a list of colors provided by the |
| public static final PixelFormat. | BYTE_RGB
The opaque pixels are stored in adjacent bytes with the color components stored in order of increasing index: red, green, blue. |
| public static final PixelFormat. | INT_ARGB
The pixels are stored in 32-bit integers with the non-premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue. |
| public static final PixelFormat. | INT_ARGB_PRE
The pixels are stored in 32-bit integers with the premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PixelFormat. | |
| public static PixelFormat. |
| BYTE_BGRA | back to summary |
|---|---|
| public static final PixelFormat. The pixels are stored in adjacent bytes with the non-premultiplied components stored in order of increasing index: blue, green, red, alpha. | |
| BYTE_BGRA_PRE | back to summary |
|---|---|
| public static final PixelFormat. The pixels are stored in adjacent bytes with the premultiplied components stored in order of increasing index: blue, green, red, alpha. | |
| BYTE_INDEXED | back to summary |
|---|---|
| public static final PixelFormat. The pixel colors are referenced by byte indices stored in the
pixel array, with the byte interpreted as an unsigned index into
a list of colors provided by the | |
| BYTE_RGB | back to summary |
|---|---|
| public static final PixelFormat. The opaque pixels are stored in adjacent bytes with the color components stored in order of increasing index: red, green, blue. | |
| INT_ARGB | back to summary |
|---|---|
| public static final PixelFormat. The pixels are stored in 32-bit integers with the non-premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue. | |
| INT_ARGB_PRE | back to summary |
|---|---|
| public static final PixelFormat. The pixels are stored in 32-bit integers with the premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static PixelFormat. | |
| values | back to summary |
|---|---|
| public static PixelFormat. | |