On Thu, 4 Sep 2025 18:51:23 GMT, Phil Race <[email protected]> wrote:

>> This is a good point, but I have not changed the existing approach to 
>> creating a PeekGraphics. A BufferedImage is created based on the  paper 
>> format size and DPI. 
>> Does changing the approach to memory consumption align with the goals of 
>> this PR, to be able to set the document's DPI to match the printer's DPI?
>
> 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.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25489#discussion_r2331460942

Reply via email to