Summary: | /Interpolate and /Decode are misbehaving in --image-- | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | François Robert <frobert> |
Component: | PS Interpreter | Assignee: | Robin Watts <robin.watts> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | henry.stiles |
Priority: | P4 | ||
Version: | 9.02 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | Word Size: | --- |
This bug was found when testing a separation procset. I use /Decode [1 1] for producing a white knockout effect. However, when /Interpolate is true, /Decode is ignored and non white pixels are displayed. Here is a simple test case: 0.4 setgray 0 0 200 200 rectfill 50 50 translate /DeviceGray setcolorspace 100 100 scale << /Interpolate true /ImageType 1 /Width 8 /Height 8 /BitsPerComponent 8 /Decode [1 1] /ImageMatrix [8 0 0 -8 0 8] /DataSource <AA5500> >> image When /Interpolate is false, it renders a white square in the middle of a gray square (as expected). When /Interpolate is true, it renders a blurred checkered square in the middle of the gray square. This is unexpected...