Group Abstract Group Abstract

Message Boards Message Boards

[GiF] Working with Graphics on Windows in a pixel perfect way

enter image description here

enter image description here

POSTED BY: Silvia Hao
4 Replies
Posted 4 years ago
POSTED BY: Alexey Popkov
Posted 4 years ago

As a remedy, I suggest changing the ImageResolution handling mechanism: do not translate ImageResolution to ImageSizeRaw, but set appropriate Magnification instead:

Image[img, ImageResolution -> 72, Magnification -> 72/96]
Options@ToBoxes[%]

screenshot2

As you see from the screenshot, it allows avoiding the image size rounding and achieving pixel-perfect rendering of the image.

POSTED BY: Alexey Popkov

... seemingly is rounded down by the FrontEnd before applying the hidden scale 96/72 on Windows.

Indeed I saw trace of similar rounding behaviour when observing notebook size and cell-bracket. I think the whole pixel-perfect topic worth further investigations and clarifications.

POSTED BY: Silvia Hao

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard