equal
deleted
inserted
replaced
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; |