aboutsummaryrefslogtreecommitdiffstats
path: root/src/java-1.4
Commit message (Collapse)AuthorAgeFilesLines
* Bugzilla #41488:Jeremias Maerki2007-02-071-5/+6
| | | | | | | | | Fix for NPE with PNG images for RTF output. Support for GIF images in RTF output (RTF handler, only. Does not affect the RTF library.). Reverts revision 503326 and fixes the problem in a different way. But the fix is only a work-around and will need to be revisited when redesigning the image package. At any rate, the resolution problem introduced with the previous patch can been avoided with the new approach. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@504511 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #41488:Jeremias Maerki2007-02-031-1/+4
| | | | | | | Fix for NPE with PNG images for RTF output. Submitted by: Dominic Brügger <bruegger.at.puzzle.ch> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@503326 13f79535-47bb-0310-9956-ffa450edef68
* Support for soft masks (transparency) with ImageIO image adapter. Should ↵Jeremias Maerki2007-02-031-13/+25
| | | | | | help with transparent PNGs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@503323 13f79535-47bb-0310-9956-ffa450edef68
* By using the getRGB() method we convert all PNG images to sRGB regardless of ↵Jeremias Maerki2006-08-021-1/+4
| | | | | | their original color spaces. So we should also always return the sRGB color space. Otherwise, grayscale PNGs, for example, will not be displayed correctly. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@428037 13f79535-47bb-0310-9956-ffa450edef68
* Changed license headers and updated NOTICE file according to: ↵Jeremias Maerki2006-07-283-15/+18
| | | | | | http://www.apache.org/legal/src-headers.html git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426576 13f79535-47bb-0310-9956-ffa450edef68
* Activating ImageIOImage for reading PNG images in the ImageFactory made some ↵Jeremias Maerki2006-07-241-2/+54
| | | | | | | | | | test cases fail. The reason is that the PNGReader cannot extract the image resolution and leaves the default of 72dpi. Added code to inspect the image metadata for resolution info. I added the same hack as is already used in PNGImage to force loading the whole image when the image dimensions are requested, i.e. getting the right image size is more important than efficient memory use for now. The image package needs that redesign sooner or later.... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425178 13f79535-47bb-0310-9956-ffa450edef68
* Avoid exception when ImageIO is used as image adapter for TIFF images. The ↵Jeremias Maerki2006-03-181-0/+3
| | | | | | stream is already closed and the bitmap loaded when FopPDFImages wants to write the image to the PDF. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386880 13f79535-47bb-0310-9956-ffa450edef68
* Added support for relative font config URLs (metrics-url and embed-url). ↵Manuel Mall2006-01-071-0/+160
| | | | | | These URLs are now resolved through the FOP config URI resolver. A new configuration item font-base has been added which defines the base URL to be used for resolution of the font URLs. If it is not given the normal FOP base URL is used. Unrelated to this feature the patch also contains a new image class (java 1.4 specific) for JPEG images. This is for renderers (e.g. AFP) which require access to the decoded JPEG. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@366718 13f79535-47bb-0310-9956-ffa450edef68
* Restored PNG support for RTF output and fixed two bugs related to image ↵Jeremias Maerki2005-12-131-0/+5
| | | | | | | | handling (an NPE and an invalid "==" comparison on Strings). Added a default implementation for loading the raw image. Used by most FopImage implementations. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@356612 13f79535-47bb-0310-9956-ffa450edef68
* Fixes unrecoverable exceptions causing BatchDiffer to fail. Jeremias Maerki2005-08-241-2/+1
| | | | | | Doing a clean separation of encoded and decoded data inside the image implementations. Helps fix a problem with the encoded CCITT TIFF being sent to the PS output even though this is not yet implemented. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@239661 13f79535-47bb-0310-9956-ffa450edef68
* Code simplification.Jeremias Maerki2005-08-211-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234273 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #36224: Jeremias Maerki2005-08-211-0/+11
| | | | | | | | | | | | | | This patch ports the 0.20.5 CCITTFaxDecode filter functionality and its support of direct embedding on certain TIFF images to the trunk. It also cleans up some of the image handling with respect to consistent closing of the input stream to avoid dangling open files. Submitted by: Manuel Mall <mm.at.arcus.com.au> Changes to the patch: Fixed a small problem with the NullFilter in the PDF library. Used tiff_group4.tiff in external-graphic-tiff.xml. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234261 13f79535-47bb-0310-9956-ffa450edef68
* SVN properties and imports.Jeremias Maerki2005-08-101-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231224 13f79535-47bb-0310-9956-ffa450edef68
* AbstractFopImage subclass using ImageIO (JDK >= 1.4) to load images (works ↵Jeremias Maerki2005-08-101-0/+145
| | | | | | with GIF, too). Some of the code dealing with the BufferedImage could probably be extracted to a common subclass since it's mostly a copy from a different FopImage implementation. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@231223 13f79535-47bb-0310-9956-ffa450edef68
* JDK 1.5 compile-time compatibility (still doesn't compile under 1.5, yet)Jeremias Maerki2004-08-151-1/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197875 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-271-46/+14
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
* Made source more friendly for Eclipse (and IDEs in general) Joerg Pietschmann2003-06-291-0/+67
by using conditionally different files instead of source copy with filtering. Add either src/java-1.3 or src/java1.4 to your build path, depending on your JDK. Ant build should automatically choose the correct file - if the right files are comitted in the current mess, that is. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196539 13f79535-47bb-0310-9956-ffa450edef68