RFR: 8251928: [macos] the printer DPI always be 72, cause some content lost when print out [v4]
GennadiyKrivoshein
duke at openjdk.org
Mon Sep 22 14:52:40 UTC 2025
On Mon, 8 Sep 2025 21:51:50 GMT, GennadiyKrivoshein <duke at openjdk.org> wrote:
>> supposing we have a 1200 dpi printer and someone prints to A3 paper.
>> That's approx 12x16 inches and its ARGB so
>> 12 * 1_200 * 16 * 1_200 * 4 .. that's over a Gigabyte !
>>
>> So what you are doing isn't viable as well as unnecessary.
>
> Changed BufferedImage size to 1x1.
> This peekGraphics and its configuration, matrix are visible to user and it would be better if the "peek" graphics was the same as "printing" graphics.
The BufferedImage size was reverted to the initial size.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25489#discussion_r2368819795
More information about the client-libs-dev
mailing list