Bug 49338 - [PATCH] Optimize EPS and PS file size for defining rectangle path
Summary: [PATCH] Optimize EPS and PS file size for defining rectangle path
Status: RESOLVED FIXED
Alias: None
Product: XMLGraphicsCommons - Now in Jira
Classification: Unclassified
Component: java2D (show other bugs)
Version: Trunk
Hardware: All All
: P2 enhancement (vote)
Target Milestone: --
Assignee: XML Graphics Project Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 07:04 UTC by Julien Aymé
Modified: 2010-05-30 11:20 UTC (History)
0 users



Attachments
The proposed patch (2.82 KB, application/octet-stream)
2010-05-25 07:04 UTC, Julien Aymé
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Aymé 2010-05-25 07:04:00 UTC
Created attachment 25480 [details]
The proposed patch

The PSGenerator class already has a defineRect method, yet this method is not used within the PSGraphics2D class.

I propose to use this optimized method instead of using the more general processPathIterator method when defining a Rectangle Path.
Comment 1 Jeremias Maerki 2010-05-30 11:20:40 UTC
Nice one! Patch applied with rev 949528 (http://svn.apache.org/viewvc?rev=949528&view=rev). Thanks for the patch!