| Summary: | ScaledGraphics zoomLineWidth implementation is incorrect and leads to image anomalies | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Simon Pope <skjpope> |
| Component: | GEF-Legacy Draw2d | Assignee: | Alex Boyko <aboyko> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ahunter.eclipse, hudsonr |
| Version: | unspecified | ||
| Target Milestone: | 3.6.2 (Helios SR2) | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
| Attachments: | |||
Created attachment 181060 [details]
Problem showing at 300dpi - lines are too faint
Created attachment 181061 [details]
At 600 dpi, lines are almost invisible
Created attachment 181062 [details]
Correct appearance at 300dpi after code change
Created attachment 181063 [details]
Correct appearance at 600dpi after code change - note that the width of the lines now scales with the resolution of the image
Created attachment 181112 [details]
patch
The patch for zoomLineWidth(float) method
Delivered the fix in R3_6_maintenance and HEAD. Trivial fix - suggested and tested by Simon. |
Build Identifier: 20100917-0705 The ScaledGraphics class does not scale line widths, leading to bizarre output when the figure is rendered as high-resolution bitmaps (hint, the lines disappear from the printed page!) The method currently reads: float zoomLineWidth(float w) { return w; } It should read: float zoomLineWidth(float w) { return (float) zoom * w; } Reproducible: Always