[Pixelle-commit] SF.net SVN: pixelle:[222] trunk/pixelle/src/com/mebigfatguy/pixelle/ PixelleEvalFa
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-22 06:01:08
|
Revision: 222
http://pixelle.svn.sourceforge.net/pixelle/?rev=222&view=rev
Author: dbrosius
Date: 2008-11-22 06:00:59 +0000 (Sat, 22 Nov 2008)
Log Message:
-----------
add indexed cm handling
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleEvalFactory.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleEvalFactory.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleEvalFactory.java 2008-11-22 06:00:16 UTC (rev 221)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleEvalFactory.java 2008-11-22 06:00:59 UTC (rev 222)
@@ -24,6 +24,7 @@
import com.mebigfatguy.pixelle.eval.PixelleEval4ByteABGR;
import com.mebigfatguy.pixelle.eval.PixelleEvalByteGray;
import com.mebigfatguy.pixelle.eval.PixelleEvalCustom;
+import com.mebigfatguy.pixelle.eval.PixelleEvalIndexed;
import com.mebigfatguy.pixelle.eval.PixelleEvalIntARGB;
import com.mebigfatguy.pixelle.eval.PixelleEvalIntBGR;
import com.mebigfatguy.pixelle.eval.PixelleEvalIntRGB;
@@ -76,7 +77,7 @@
throw new IllegalArgumentException("Image type: " + image.getType() + " (Byte Binary) is not supported yet.");
case BufferedImage.TYPE_BYTE_INDEXED:
- throw new IllegalArgumentException("Image type: " + image.getType() + " (Byte Indexed) is not supported yet.");
+ return new PixelleEvalIndexed(image, ioobOption, coobOption);
case BufferedImage.TYPE_BYTE_GRAY:
return new PixelleEvalByteGray(image, ioobOption, coobOption);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|