private void createColorModel() { colorModel = sourceColorModel; // Clean up, in case any objects are copied/cloned, so we can free resources freeResources(); }
/** * Frees resources used by this {@code BufferedImageFactory}. */ public void dispose() { freeResources(); buffered = null; colorModel = null; }
private void createBuffered() { if (width > 0 && height > 0) { if (sourceColorModel != null && sourcePixels != null) { // TODO: Fix pixel size / color model problem WritableRaster raster = ImageUtil.createRaster(width, height, sourcePixels, sourceColorModel); buffered = new BufferedImage(sourceColorModel, raster, sourceColorModel.isAlphaPremultiplied(), sourceProperties); } else { buffered = ImageUtil.createClear(width, height, null); } } // Clean up, in case any objects are copied/cloned, so we can free resources freeResources(); }
/** * Frees resources used by this {@code BufferedImageFactory}. */ public void dispose() { freeResources(); mBuffered = null; mColorModel = null; }
/** * Frees resources used by this {@code BufferedImageFactory}. */ public void dispose() { freeResources(); buffered = null; colorModel = null; }
private void createColorModel() { colorModel = sourceColorModel; // Clean up, in case any objects are copied/cloned, so we can free resources freeResources(); }
private void createColorModel() { mColorModel = mSourceColorModel; // Clean up, in case any objects are copied/cloned, so we can free resources freeResources(); }
private void createBuffered() { if (width > 0 && height > 0) { if (sourceColorModel != null && sourcePixels != null) { // TODO: Fix pixel size / color model problem WritableRaster raster = ImageUtil.createRaster(width, height, sourcePixels, sourceColorModel); buffered = new BufferedImage(sourceColorModel, raster, sourceColorModel.isAlphaPremultiplied(), sourceProperties); } else { buffered = ImageUtil.createClear(width, height, null); } } // Clean up, in case any objects are copied/cloned, so we can free resources freeResources(); }
private void createBuffered() { if (mWidth > 0 && mHeight > 0) { if (mSourceColorModel != null && mSourcePixels != null) { // TODO: Fix pixel size / color model problem WritableRaster raster = ImageUtil.createRaster(mWidth, mHeight, mSourcePixels, mSourceColorModel); mBuffered = new BufferedImage(mSourceColorModel, raster, mSourceColorModel.isAlphaPremultiplied(), mSourceProperties); } else { mBuffered = ImageUtil.createClear(mWidth, mHeight, null); } } // Clean up, in case any objects are copied/cloned, so we can free resources freeResources(); }