aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/image/JAIImage.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-06-27 11:45:55 +0000
committerKeiron Liddle <keiron@apache.org>2002-06-27 11:45:55 +0000
commitd3b6621df5e65468d8fa65ad35e07e316635e97c (patch)
tree2e884f12b1b33cbb472a8cb8be218de5e5fbd95e /src/org/apache/fop/image/JAIImage.java
parente86556e4f1a88428e437e805774090f40ca14ccb (diff)
downloadxmlgraphics-fop-d3b6621df5e65468d8fa65ad35e07e316635e97c.tar.gz
xmlgraphics-fop-d3b6621df5e65468d8fa65ad35e07e316635e97c.zip
added transparency for images
made pdf package more self contained started on patterns/gradients for svg git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194926 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/image/JAIImage.java')
-rw-r--r--src/org/apache/fop/image/JAIImage.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/apache/fop/image/JAIImage.java b/src/org/apache/fop/image/JAIImage.java
index 54c288e2f..4d2f25561 100644
--- a/src/org/apache/fop/image/JAIImage.java
+++ b/src/org/apache/fop/image/JAIImage.java
@@ -16,14 +16,15 @@ import java.io.BufferedInputStream;
import java.awt.image.ColorModel;
import java.awt.image.IndexColorModel;
import java.awt.image.BufferedImage;
+import java.awt.color.ColorSpace;
// JAI
import javax.media.jai.JAI;
import javax.media.jai.RenderedOp;
// Sun codec
import com.sun.media.jai.codec.FileCacheSeekableStream;
+
// FOP
-import org.apache.fop.datatypes.ColorSpace;
import org.apache.fop.pdf.PDFColor;
import org.apache.fop.image.analyser.ImageReader;
@@ -59,7 +60,7 @@ public class JAIImage extends AbstractFopImage {
ColorModel cm = imageOp.getColorModel();
this.m_bitsPerPixel = 8;
// this.m_bitsPerPixel = cm.getPixelSize();
- this.m_colorSpace = new ColorSpace(ColorSpace.DEVICE_RGB);
+ this.m_colorSpace = ColorSpace.getInstance(ColorSpace.CS_LINEAR_RGB);
BufferedImage imageData = imageOp.getAsBufferedImage();
int[] tmpMap = imageData.getRGB(0, 0, this.m_width,