Bug 49338

Summary: [PATCH] Optimize EPS and PS file size for defining rectangle path
Product: XMLGraphicsCommons - Now in Jira Reporter: Julien Aymé <julien.ayme>
Component: java2DAssignee: XML Graphics Project Mailing List <general>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: Trunk   
Target Milestone: --   
Hardware: All   
OS: All   
Attachments: The proposed patch

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!