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 3 years ago
POSTED BY: Alexey Popkov
Posted 3 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
POSTED BY: Silvia Hao
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