< prev index next >

src/java.desktop/share/classes/java/awt/image/IndexColorModel.java

Print this page

        

*** 53,63 **** * component supplied or assumed for that pixel value. * Note that the color components in the colormap of an * {@code IndexColorModel} objects are never pre-multiplied with * the alpha components. * <p> ! * <a name="transparency"> * The transparency of an {@code IndexColorModel} object is * determined by examining the alpha components of the colors in the * colormap and choosing the most specific value after considering * the optional alpha values and any transparent index specified. * The transparency value is {@code Transparency.OPAQUE} --- 53,63 ---- * component supplied or assumed for that pixel value. * Note that the color components in the colormap of an * {@code IndexColorModel} objects are never pre-multiplied with * the alpha components. * <p> ! * <a id="transparency"> * The transparency of an {@code IndexColorModel} object is * determined by examining the alpha components of the colors in the * colormap and choosing the most specific value after considering * the optional alpha values and any transparent index specified. * The transparency value is {@code Transparency.OPAQUE}
*** 84,94 **** * For any other transparency value, * {@code hasAlpha} returns true * and {@code getNumComponents} returns 4. * * <p> ! * <a name="index_values"> * The values used to index into the colormap are taken from the least * significant <em>n</em> bits of pixel representations where * <em>n</em> is based on the pixel size specified in the constructor. * For pixel sizes smaller than 8 bits, <em>n</em> is rounded up to a * power of two (3 becomes 4 and 5,6,7 become 8). --- 84,94 ---- * For any other transparency value, * {@code hasAlpha} returns true * and {@code getNumComponents} returns 4. * * <p> ! * <a id="index_values"> * The values used to index into the colormap are taken from the least * significant <em>n</em> bits of pixel representations where * <em>n</em> is based on the pixel size specified in the constructor. * For pixel sizes smaller than 8 bits, <em>n</em> is rounded up to a * power of two (3 becomes 4 and 5,6,7 become 8).
< prev index next >