< prev index next >
modules/javafx.graphics/src/main/java/javafx/scene/image/PixelFormat.java
Print this page
*** 207,217 ****
* into the specified lookup table of <b>premultiplied</b> color
* values in the {@link Type#INT_ARGB_PRE INT_ARGB_PRE} format.
* <p>
* Pixels in this format can be decoded using the following sample code:
* <pre>{@code
! * int pixel = array[rowstart + x] & 0xff;
* int argb = colors[pixel];
*
* int alpha = ((argb >> 24) & 0xff);
* int red = ((argb >> 16) & 0xff);
* int green = ((argb >> 8) & 0xff);
--- 207,217 ----
* into the specified lookup table of <b>premultiplied</b> color
* values in the {@link Type#INT_ARGB_PRE INT_ARGB_PRE} format.
* <p>
* Pixels in this format can be decoded using the following sample code:
* <pre>{@code
! * int pixel = array[rowstart + x] & 0xff;
* int argb = colors[pixel];
*
* int alpha = ((argb >> 24) & 0xff);
* int red = ((argb >> 16) & 0xff);
* int green = ((argb >> 8) & 0xff);
*** 235,245 ****
* into the specified lookup table of <b>non-premultiplied</b> color
* values in the {@link Type#INT_ARGB INT_ARGB} format.
* <p>
* Pixels in this format can be decoded using the following sample code:
* <pre>{@code
! * int pixel = array[rowstart + x] & 0xff;
* int argb = colors[pixel];
*
* int alpha = ((argb >> 24) & 0xff);
* int red = ((argb >> 16) & 0xff);
* int green = ((argb >> 8) & 0xff);
--- 235,245 ----
* into the specified lookup table of <b>non-premultiplied</b> color
* values in the {@link Type#INT_ARGB INT_ARGB} format.
* <p>
* Pixels in this format can be decoded using the following sample code:
* <pre>{@code
! * int pixel = array[rowstart + x] & 0xff;
* int argb = colors[pixel];
*
* int alpha = ((argb >> 24) & 0xff);
* int red = ((argb >> 16) & 0xff);
* int green = ((argb >> 8) & 0xff);
< prev index next >