Summary: | [PATCH] Adding support for rendering-color-space property | ||
---|---|---|---|
Product: | Batik - Now in Jira | Reporter: | Thomas Deweese <deweese> |
Component: | (RFE) Request For Extension | Assignee: | Batik Developer's Mailing list <batik-dev> |
Status: | NEW --- | ||
Severity: | normal | Keywords: | NeedsReleaseNote, PatchAvailable |
Priority: | P3 | ||
Version: | 1.5 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 26816 | ||
Attachments: | A Patch that adds support for rendering-color-space |
Description
Thomas Deweese
2004-02-26 11:40:42 UTC
Created attachment 10567 [details]
A Patch that adds support for rendering-color-space
The patch attached to this bug report adds support for the SVG 1.2 property 'rendering-color-space'. This property allows subtree's of the document to be render/composed in colorspaces other than sRGB. The current patch has a few issues. 1) It requires JDK 1.4 to function properly (it also requires 1.4 to compile, but the compile part should be easy to fix). 2) It involves lying to Java2D about almost everything. The patch tells Java2D it is working in sRGB when in fact it is working in what ever colorspace the user requested. This seems to be needed for two reasons. First, if you don't do this it appears to convert everything to 'sRGB' composite and covert back! Second (which is probably related to first) performance. As it turns out lying in this manner isn't too hard so the patch works :) Reassigning all open bugs to the development list. Sorry for the mass mailing. (In reply to comment #2) > 1) It requires JDK 1.4 to function properly (it also requires > 1.4 to compile, but the compile part should be easy to fix). Update: Java version 1.4 is now the minimum required so this may worth a retry...? :-) I haven't tested if the patch still applies cleanly, though: given its date, it will likely need some modification(s). |