fadden / CiderPress2

Tool for working with Apple II and vintage Mac disk images and file archives.
https://ciderpress2.com/
Apache License 2.0
48 stars 7 forks source link

Images have artifacts in WPF file viewer #8

Open fadden opened 9 months ago

fadden commented 9 months ago

When displaying converted images, the file viewer uses a WPF Image control with NearestNeighbor scaling. If the control size is set to the exact size of the image, various artifacts appear. MacPaint images with fine detail look especially bad.

image image

If the size of the output image is increased by one pixel in each dimension, most of the artifacts disappear, though you can now see an extra row and column on some images:

image image

The latter is generally easier on the eyes, so the size change was submitted in https://github.com/fadden/CiderPress2/commit/99c22917e0872f68543184ae76ba96009cdcb623.

Additional notes:

The distortion only affects the on-screen appearance. Images exported as PNG or copied & pasted to other applications are fine:

image

(Primary test file is a Print Shop clip art file called BARNS, found in test-files.sdk here.)