< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/image/PixelFormat.java

Print this page

        

@@ -207,11 +207,11 @@
      * 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] &amp; 0xff;
+     *     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,11 +235,11 @@
      * 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] &amp; 0xff;
+     *     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 >