src/java.desktop/share/classes/java/awt/image/IndexColorModel.java
changeset 47971 75686e8da573
parent 47216 71c04702a3d5
child 52248 2e330da7cbf4
equal deleted inserted replaced
47970:1c8b81ff863e 47971:75686e8da573
   753      * This method is called from the constructors to set the pixel_mask
   753      * This method is called from the constructors to set the pixel_mask
   754      * value, which is based on the value of pixel_bits.  The pixel_mask
   754      * value, which is based on the value of pixel_bits.  The pixel_mask
   755      * value is used to mask off the pixel parameters for methods such
   755      * value is used to mask off the pixel parameters for methods such
   756      * as getRed(), getGreen(), getBlue(), getAlpha(), and getRGB().
   756      * as getRed(), getGreen(), getBlue(), getAlpha(), and getRGB().
   757      */
   757      */
   758     private final void calculatePixelMask() {
   758     private void calculatePixelMask() {
   759         // Note that we adjust the mask so that our masking behavior here
   759         // Note that we adjust the mask so that our masking behavior here
   760         // is consistent with that of our native rendering loops.
   760         // is consistent with that of our native rendering loops.
   761         int maskbits = pixel_bits;
   761         int maskbits = pixel_bits;
   762         if (maskbits == 3) {
   762         if (maskbits == 3) {
   763             maskbits = 4;
   763             maskbits = 4;