Skip to content
Prev 105588 / 398503 Next

A question on grid - grid.points not spaced properly

Hi
Saptarshi Guha wrote:
I think you are seeing a rasterization effect.  Both on screen and in a
bitmap format you are essentially turning on a single pixel at a time.
The locations you are giving do not necessarily correspond to an exact
pixel location (bigpoints are in 1/72 inches, but your screen might have
a resolution of 96 ppi) so you just get the nearest pixel to that
location.  So the gap you specify of two bigpoints sometimes comes out
as 2 pixels, sometimes as 1 pixel (for example).

For comparison, try running your code on a PDF (or other vector format)
device;  the result is much more what you are expecting I think.

Paul