src/share/classes/java/awt/image/BufferedImage.java

Print this page

        

*** 74,84 **** { int imageType = TYPE_CUSTOM; ColorModel colorModel; WritableRaster raster; OffScreenImageSource osis; ! Hashtable properties; boolean isAlphaPremultiplied;// If true, alpha has been premultiplied in // color channels /** --- 74,84 ---- { int imageType = TYPE_CUSTOM; ColorModel colorModel; WritableRaster raster; OffScreenImageSource osis; ! Hashtable<Object, Object> properties; boolean isAlphaPremultiplied;// If true, alpha has been premultiplied in // color channels /**
*** 640,650 **** + raster.minX + " " + raster.minY); } colorModel = cm; this.raster = raster; ! this.properties = properties; int numBands = raster.getNumBands(); boolean isAlphaPre = cm.isAlphaPremultiplied(); final boolean isStandard = isStandard(cm, raster); ColorSpace cs; --- 640,650 ---- + raster.minX + " " + raster.minY); } colorModel = cm; this.raster = raster; ! this.properties = (Hashtable<Object,Object>)properties; int numBands = raster.getNumBands(); boolean isAlphaPre = cm.isAlphaPremultiplied(); final boolean isStandard = isStandard(cm, raster); ColorSpace cs;
*** 1105,1115 **** * @see ImageProducer */ public ImageProducer getSource() { if (osis == null) { if (properties == null) { ! properties = new Hashtable(); } osis = new OffScreenImageSource(this, properties); } return osis; } --- 1105,1115 ---- * @see ImageProducer */ public ImageProducer getSource() { if (osis == null) { if (properties == null) { ! properties = new Hashtable<>(); } osis = new OffScreenImageSource(this, properties); } return osis; }