264 * can result, depending on the colors in the
265 * <code>IndexColorModel</code> colormap.
266 */
267 public static final int TYPE_BYTE_INDEXED = 13;
268
269 private static final int DCM_RED_MASK = 0x00ff0000;
270 private static final int DCM_GREEN_MASK = 0x0000ff00;
271 private static final int DCM_BLUE_MASK = 0x000000ff;
272 private static final int DCM_ALPHA_MASK = 0xff000000;
273 private static final int DCM_565_RED_MASK = 0xf800;
274 private static final int DCM_565_GRN_MASK = 0x07E0;
275 private static final int DCM_565_BLU_MASK = 0x001F;
276 private static final int DCM_555_RED_MASK = 0x7C00;
277 private static final int DCM_555_GRN_MASK = 0x03E0;
278 private static final int DCM_555_BLU_MASK = 0x001F;
279 private static final int DCM_BGR_RED_MASK = 0x0000ff;
280 private static final int DCM_BGR_GRN_MASK = 0x00ff00;
281 private static final int DCM_BGR_BLU_MASK = 0xff0000;
282
283
284 static private native void initIDs();
285 static {
286 ColorModel.loadLibraries();
287 initIDs();
288 }
289
290 /**
291 * Constructs a <code>BufferedImage</code> of one of the predefined
292 * image types. The <code>ColorSpace</code> for the image is the
293 * default sRGB space.
294 * @param width width of the created image
295 * @param height height of the created image
296 * @param imageType type of the created image
297 * @see ColorSpace
298 * @see #TYPE_INT_RGB
299 * @see #TYPE_INT_ARGB
300 * @see #TYPE_INT_ARGB_PRE
301 * @see #TYPE_INT_BGR
302 * @see #TYPE_3BYTE_BGR
303 * @see #TYPE_4BYTE_ABGR
304 * @see #TYPE_4BYTE_ABGR_PRE
|
264 * can result, depending on the colors in the
265 * <code>IndexColorModel</code> colormap.
266 */
267 public static final int TYPE_BYTE_INDEXED = 13;
268
269 private static final int DCM_RED_MASK = 0x00ff0000;
270 private static final int DCM_GREEN_MASK = 0x0000ff00;
271 private static final int DCM_BLUE_MASK = 0x000000ff;
272 private static final int DCM_ALPHA_MASK = 0xff000000;
273 private static final int DCM_565_RED_MASK = 0xf800;
274 private static final int DCM_565_GRN_MASK = 0x07E0;
275 private static final int DCM_565_BLU_MASK = 0x001F;
276 private static final int DCM_555_RED_MASK = 0x7C00;
277 private static final int DCM_555_GRN_MASK = 0x03E0;
278 private static final int DCM_555_BLU_MASK = 0x001F;
279 private static final int DCM_BGR_RED_MASK = 0x0000ff;
280 private static final int DCM_BGR_GRN_MASK = 0x00ff00;
281 private static final int DCM_BGR_BLU_MASK = 0xff0000;
282
283
284 private static native void initIDs();
285 static {
286 ColorModel.loadLibraries();
287 initIDs();
288 }
289
290 /**
291 * Constructs a <code>BufferedImage</code> of one of the predefined
292 * image types. The <code>ColorSpace</code> for the image is the
293 * default sRGB space.
294 * @param width width of the created image
295 * @param height height of the created image
296 * @param imageType type of the created image
297 * @see ColorSpace
298 * @see #TYPE_INT_RGB
299 * @see #TYPE_INT_ARGB
300 * @see #TYPE_INT_ARGB_PRE
301 * @see #TYPE_INT_BGR
302 * @see #TYPE_3BYTE_BGR
303 * @see #TYPE_4BYTE_ABGR
304 * @see #TYPE_4BYTE_ABGR_PRE
|