PixelFormat object representing a pixel format that can store
full colors and so can be used as a destination format to write pixel
data from an arbitrary image.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isWritable()
Implements abstract javafx. Returns true iff this |
| public abstract void | setArgb(T
the 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, int a 32-bit value with the color to be stored in the pixel
in a format similar to the argb)Type.INT_ARGB pixel formatStores the appropriate pixel data that represents the specified 32-bit integer representation of a color in the buffer at the specified coordinates. |
| WritablePixelFormat | back to summary |
|---|---|
| pack-priv WritablePixelFormat(PixelFormat. | |
| isWritable | back to summary |
|---|---|
| public boolean isWritable() Implements abstract javafx. Doc from javafx. Returns true iff this
| |
| setArgb | back to summary |
|---|---|
| public abstract void setArgb(T buf, int x, int y, int scanlineStride, int argb) Stores the appropriate pixel data that represents the specified
32-bit integer representation of a color in the buffer
at the specified coordinates.
The 32-bit integer will contain the 4 color components in separate
8-bit fields in ARGB order from the most significant byte to the least
significant byte.
The buffer should be positioned to the start of the pixel data such
that Color components can be composed into an integer using the following sample code:
int argb = ((alpha << 24) |
(red << 16) |
(green << 8) |
(blue );
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final WritablePixelFormat. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getArgb(ByteBuffer
the 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)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 void | setArgb(ByteBuffer
the 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, int a 32-bit value with the color to be stored in the pixel
in a format similar to the argb)Type.INT_ARGB pixel formatImplements abstract javafx. Stores the appropriate pixel data that represents the specified 32-bit integer representation of a color in the buffer at the specified coordinates. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final WritablePixelFormat. | |
| ByteBgra | back to summary |
|---|---|
| private ByteBgra() | |
| 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.
| |
| setArgb | back to summary |
|---|---|
| public void setArgb(ByteBuffer buf, int x, int y, int scanlineStride, int argb) Implements abstract javafx. Doc from javafx. Stores the appropriate pixel data that represents the specified
32-bit integer representation of a color in the buffer
at the specified coordinates.
The 32-bit integer will contain the 4 color components in separate
8-bit fields in ARGB order from the most significant byte to the least
significant byte.
The buffer should be positioned to the start of the pixel data such
that Color components can be composed into an integer using the following sample code:
int argb = ((alpha << 24) |
(red << 16) |
(green << 8) |
(blue );
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final WritablePixelFormat. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getArgb(ByteBuffer
the 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)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 void | setArgb(ByteBuffer
the 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, int a 32-bit value with the color to be stored in the pixel
in a format similar to the argb)Type.INT_ARGB pixel formatImplements abstract javafx. Stores the appropriate pixel data that represents the specified 32-bit integer representation of a color in the buffer at the specified coordinates. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final WritablePixelFormat. | |
| ByteBgraPre | back to summary |
|---|---|
| private ByteBgraPre() | |
| 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.
| |
| setArgb | back to summary |
|---|---|
| public void setArgb(ByteBuffer buf, int x, int y, int scanlineStride, int argb) Implements abstract javafx. Doc from javafx. Stores the appropriate pixel data that represents the specified
32-bit integer representation of a color in the buffer
at the specified coordinates.
The 32-bit integer will contain the 4 color components in separate
8-bit fields in ARGB order from the most significant byte to the least
significant byte.
The buffer should be positioned to the start of the pixel data such
that Color components can be composed into an integer using the following sample code:
int argb = ((alpha << 24) |
(red << 16) |
(green << 8) |
(blue );
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final WritablePixelFormat. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getArgb(IntBuffer
the 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)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 void | setArgb(IntBuffer
the 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, int a 32-bit value with the color to be stored in the pixel
in a format similar to the argb)Type.INT_ARGB pixel formatImplements abstract javafx. Stores the appropriate pixel data that represents the specified 32-bit integer representation of a color in the buffer at the specified coordinates. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final WritablePixelFormat. | |
| IntArgb | back to summary |
|---|---|
| private IntArgb() | |
| getArgb | back to summary |
|---|---|
| public int getArgb(IntBuffer 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.
| |
| setArgb | back to summary |
|---|---|
| public void setArgb(IntBuffer buf, int x, int y, int scanlineStride, int argb) Implements abstract javafx. Doc from javafx. Stores the appropriate pixel data that represents the specified
32-bit integer representation of a color in the buffer
at the specified coordinates.
The 32-bit integer will contain the 4 color components in separate
8-bit fields in ARGB order from the most significant byte to the least
significant byte.
The buffer should be positioned to the start of the pixel data such
that Color components can be composed into an integer using the following sample code:
int argb = ((alpha << 24) |
(red << 16) |
(green << 8) |
(blue );
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final WritablePixelFormat. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getArgb(IntBuffer
the 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)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 void | setArgb(IntBuffer
the 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, int a 32-bit value with the color to be stored in the pixel
in a format similar to the argb)Type.INT_ARGB pixel formatImplements abstract javafx. Stores the appropriate pixel data that represents the specified 32-bit integer representation of a color in the buffer at the specified coordinates. |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final WritablePixelFormat. | |
| IntArgbPre | back to summary |
|---|---|
| private IntArgbPre() | |
| getArgb | back to summary |
|---|---|
| public int getArgb(IntBuffer 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.
| |
| setArgb | back to summary |
|---|---|
| public void setArgb(IntBuffer buf, int x, int y, int scanlineStride, int argb) Implements abstract javafx. Doc from javafx. Stores the appropriate pixel data that represents the specified
32-bit integer representation of a color in the buffer
at the specified coordinates.
The 32-bit integer will contain the 4 color components in separate
8-bit fields in ARGB order from the most significant byte to the least
significant byte.
The buffer should be positioned to the start of the pixel data such
that Color components can be composed into an integer using the following sample code:
int argb = ((alpha << 24) |
(red << 16) |
(green << 8) |
(blue );
| |