equal
deleted
inserted
replaced
1150 * and is not large enough to hold all the color |
1150 * and is not large enough to hold all the color |
1151 * and alpha components starting at <code>offset</code> |
1151 * and alpha components starting at <code>offset</code> |
1152 * @throws ClassCastException if <code>pixel</code> is not a |
1152 * @throws ClassCastException if <code>pixel</code> is not a |
1153 * primitive array of type <code>transferType</code> |
1153 * primitive array of type <code>transferType</code> |
1154 * @throws UnsupportedOperationException if <code>transferType</code> |
1154 * @throws UnsupportedOperationException if <code>transferType</code> |
1155 * is not one of the supported transer types |
1155 * is not one of the supported transfer types |
1156 * @see ColorModel#hasAlpha |
1156 * @see ColorModel#hasAlpha |
1157 * @see ColorModel#getNumComponents |
1157 * @see ColorModel#getNumComponents |
1158 */ |
1158 */ |
1159 public int[] getComponents(Object pixel, int[] components, int offset) { |
1159 public int[] getComponents(Object pixel, int[] components, int offset) { |
1160 int intpixel; |
1160 int intpixel; |
1269 * <code>pixel</code> is not large enough to hold a pixel value |
1269 * <code>pixel</code> is not large enough to hold a pixel value |
1270 * for this <code>ColorModel</code> or the <code>components</code> |
1270 * for this <code>ColorModel</code> or the <code>components</code> |
1271 * array is not large enough to hold all of the color and alpha |
1271 * array is not large enough to hold all of the color and alpha |
1272 * components starting at <code>offset</code> |
1272 * components starting at <code>offset</code> |
1273 * @throws UnsupportedOperationException if <code>transferType</code> |
1273 * @throws UnsupportedOperationException if <code>transferType</code> |
1274 * is not one of the supported transer types |
1274 * is not one of the supported transfer types |
1275 * @see WritableRaster#setDataElements |
1275 * @see WritableRaster#setDataElements |
1276 * @see SampleModel#setDataElements |
1276 * @see SampleModel#setDataElements |
1277 */ |
1277 */ |
1278 public Object getDataElements(int[] components, int offset, Object pixel) { |
1278 public Object getDataElements(int[] components, int offset, Object pixel) { |
1279 int rgb = (components[offset+0]<<16) | (components[offset+1]<<8) |
1279 int rgb = (components[offset+0]<<16) | (components[offset+1]<<8) |