Lines Matching refs:bits

41  * unusable colors via the bits set in a <code>BigInteger</code> object.
90 * significant <em>n</em> bits of pixel representations where
92 * For pixel sizes smaller than 8 bits, <em>n</em> is rounded up to a
94 * For pixel sizes between 8 and 16 bits, <em>n</em> is equal to the
96 * Pixel sizes larger than 16 bits are not supported by this class.
97 * Higher order bits beyond <em>n</em> are ignored in pixel representations.
155 * @param bits the number of bits each pixel occupies
160 * @throws IllegalArgumentException if <code>bits</code> is less
165 public IndexColorModel(int bits, int size,
167 super(bits, opaqueBits,
170 ColorModel.getDefaultTransferType(bits));
171 if (bits < 1 || bits > 16) {
172 throw new IllegalArgumentException("Number of bits must be between"
194 * @param bits the number of bits each pixel occupies
200 * @throws IllegalArgumentException if <code>bits</code> is less than
205 public IndexColorModel(int bits, int size,
207 super(bits, opaqueBits,
210 ColorModel.getDefaultTransferType(bits));
211 if (bits < 1 || bits > 16) {
212 throw new IllegalArgumentException("Number of bits must be between"
233 * @param bits the number of bits each pixel occupies
239 * @throws IllegalArgumentException if <code>bits</code> is less
244 public IndexColorModel(int bits, int size,
246 super (bits, alphaBits,
249 ColorModel.getDefaultTransferType(bits));
250 if (bits < 1 || bits > 16) {
251 throw new IllegalArgumentException("Number of bits must be between"
273 * @param bits the number of bits each pixel occupies
279 * @throws IllegalArgumentException if <code>bits</code> is less
284 public IndexColorModel(int bits, int size, byte cmap[], int start,
286 this(bits, size, cmap, start, hasalpha, -1);
287 if (bits < 1 || bits > 16) {
288 throw new IllegalArgumentException("Number of bits must be between"
309 * @param bits the number of bits each pixel occupies
316 * @throws IllegalArgumentException if <code>bits</code> is less than
321 public IndexColorModel(int bits, int size, byte cmap[], int start,
324 super(bits, opaqueBits,
327 ColorModel.getDefaultTransferType(bits));
329 if (bits < 1 || bits > 16) {
330 throw new IllegalArgumentException("Number of bits must be between"
338 rgb = new int[calcRealMapSize(bits, size)];
386 * @param bits the number of bits each pixel occupies
397 * @throws IllegalArgumentException if <code>bits</code> is less
405 public IndexColorModel(int bits, int size,
409 super(bits, opaqueBits,
414 if (bits < 1 || bits > 16) {
415 throw new IllegalArgumentException("Number of bits must be between"
452 * @param bits the number of bits each pixel occupies
461 * Only bits from 0 to the map size are considered.
462 * @throws IllegalArgumentException if <code>bits</code> is less
472 public IndexColorModel(int bits, int size, int cmap[], int start,
474 super (bits, alphaBits,
479 if (bits < 1 || bits > 16) {
480 throw new IllegalArgumentException("Number of bits must be between"
584 private int calcRealMapSize(int bits, int size) {
585 int newSize = Math.max(1 << bits, size);
611 * Returns an array of the number of bits for each color/alpha component.
614 * @return an array containing the number of bits of each color
771 * Only the lower <em>n</em> bits of the pixel value, as specified in the
786 * Only the lower <em>n</em> bits of the pixel value, as specified in the
801 * Only the lower <em>n</em> bits of the pixel value, as specified in the
815 * Only the lower <em>n</em> bits of the pixel value, as specified in the
828 * Only the lower <em>n</em> bits of the pixel value, as specified in the
1293 * only works for color models with 16 or fewer bits per pixel.
1296 * subclass that supports greater than 16 bits per pixel must
1303 * @throws UnsupportedOperationException if the number of bits in a
1327 " for pixel bits > 16.");
1408 * Only the lower <em>n</em> bits of each index value in the source