Page 1 of 1

The image display area is off by one.

Posted: February 26th, 2021, 11:06 am
by pierrelabreche
Scenario : create an 8x8 image, only 7x7 is shown.
2021-02-26 PWP8 8x8 off by one image area (only 7x7 shown).png
2021-02-26 PWP8 8x8 off by one image area (only 7x7 shown).png (100.09 KiB) Viewed 4413 times

Re: The image display area is off by one.

Posted: March 11th, 2021, 11:26 am
by pierrelabreche
Any progress on a possible fix ?

Re: The image display area is off by one.

Posted: March 11th, 2021, 12:24 pm
by jsachs
I believe I fixed this a while ago (see 28-Feb update)

Re: The image display area is off by one.

Posted: March 14th, 2021, 3:48 pm
by pierrelabreche
Hi Jonathan

No ... the problem is still present in the latest version, 8.0.204
2021-03-14 PWP8 8x8 off by one image area (only 7x7 shown).png
2021-03-14 PWP8 8x8 off by one image area (only 7x7 shown).png (62.42 KiB) Viewed 4357 times

Re: The image display area is off by one.

Posted: March 14th, 2021, 5:57 pm
by jsachs
If you go to File/Preferences and set Smooth Display to Yes, it works OK. I will see if I can fix what is wrong for the other case for the next release.

Re: The image display area is off by one.

Posted: March 15th, 2021, 1:05 pm
by pierrelabreche
Hello Jonathan,

... not quite : using PWP8 with smooth scrolling : perimeter pixels not fully displayed (about half only).
and pixels are misaligned with an 8x8 grid.
2021-03-15 PWP8 8x8 grid , smooth scrolling, perimeter pixels not fully displayed.png
2021-03-15 PWP8 8x8 grid , smooth scrolling, perimeter pixels not fully displayed.png (58.64 KiB) Viewed 4340 times

Re: The image display area is off by one.

Posted: March 15th, 2021, 1:11 pm
by jsachs
This is not a bug. The pixel location is at the center of the square.

Re: The image display area is off by one.

Posted: March 15th, 2021, 5:26 pm
by pierrelabreche
I see that two problems remain :

1. 50% of the area of periphereral pixels is hidden, and 75% of the area of corner pixels is hidden.
2. In an image having 8x8 pixels, an 8x8 grid should align perfectly with the pixel boundaries. The resulting grid is not 8x8, as selected, but 7x7.

Thanks

Re: The image display area is off by one.

Posted: March 15th, 2021, 5:54 pm
by jsachs
The grid has 8 divisions and grid intersections pass through the centers of the pixels.

The display window is aligned with the centers of the pixels and thus shows only part of the edge pixels when you zoom in by huge amounts as in this example. This is a total non-issue for normal photographic images. While this may not be what you expect it to do, it is perfectly consistent and the way it works.