Summary: | Clist gets clip path wrong | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Robin Watts <robin.watts> |
Component: | Graphics Library | Assignee: | Robin Watts <robin.watts> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | sphinx.pinastri |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows NT | ||
Customer: | Word Size: | --- | |
Attachments: | out3.pdf |
Description
Robin Watts
2017-03-17 06:32:43 UTC
Ok, I now understand why this happens. A clipping path is put into the clist. The path in the clist is correct. It is played back by filling that path into a clipping accumulator. It's a rectangle that extends precisely from a pixel boundary up a whole number of pixels. The antidropout code for horizontal edges causes an extra line to be put in at the top of the rectangle, thus extending it upwards. I might be tempted to look for a fix in the scan converter, were it not for the fact that I'm about to replace it. The new scan converter gets this wrong too, though arguably it's in agreement with Acrobats handling of zero width regions. I will need to ponder this some more. Taking this bug back from Ray. This bug appears to be fixed because clist and non-clist invocations produce identical results. These results look similar to the raster image produced by Acrobat. I can confirm that we get identical results now. Closing. Thanks Peter. |