From f32110c5b851ebe427f4d791f6657bce373939a4 Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Mon, 29 Sep 2014 11:22:25 +0200 Subject: [PATCH] Code clean-up, no functional changes. --- .../main/java/com/twelvemonkeys/image/MappedImageFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sandbox/sandbox-common/src/main/java/com/twelvemonkeys/image/MappedImageFactory.java b/sandbox/sandbox-common/src/main/java/com/twelvemonkeys/image/MappedImageFactory.java index fb72da96..4f8cc7c0 100644 --- a/sandbox/sandbox-common/src/main/java/com/twelvemonkeys/image/MappedImageFactory.java +++ b/sandbox/sandbox-common/src/main/java/com/twelvemonkeys/image/MappedImageFactory.java @@ -50,6 +50,7 @@ public final class MappedImageFactory { // TODO: Create a way to do ColorConvertOp (or other color space conversion) on these images. // - Current implementation of CCOp delegates to internal sun.awt classes that assumes java.awt.DataBufferByte for type byte buffers :-/ + // - Might be possible (but slow) to copy parts to memory and do CCOp on these copies private static final boolean DEBUG = "true".equalsIgnoreCase(System.getProperty("com.twelvemonkeys.image.mapped.debug")); static final RasterFactory RASTER_FACTORY = createRasterFactory(); @@ -62,8 +63,6 @@ public final class MappedImageFactory { } public static BufferedImage createCompatibleMappedImage(int width, int height, GraphicsConfiguration configuration, int transparency) throws IOException { -// BufferedImage temp = configuration.createCompatibleImage(1, 1, transparency); -// return createCompatibleMappedImage(width, height, temp.getSampleModel().createCompatibleSampleModel(width, height), temp.getColorModel()); return createCompatibleMappedImage(width, height, configuration.getColorModel(transparency)); }