On Mon, 6 Jun 2022 21:11:03 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Use RObot.createMultiResoutionCapture
>
> test/jdk/javax/swing/text/CSSBorder/6796710/bug6796710.java line 147:
> 
>> 145:         MultiResolutionImage img = 
>> robot.createMultiResolutionScreenCapture(rect);
>> 146:         return (BufferedImage)img.getResolutionVariant(rect.width, 
>> rect.height);
>> 147:         //return robot.createScreenCapture(rect);
> 
> Isn't the old and new code should get the same result? The old 
> createScreenCapture always creates an image of the low dpi quality. The 
> createMultiResolutionScreenCapture creates two images low/hi dpi, but since 
> you request the same size "rect" the low dpi image is returned, no?

Maybe it's different in iMac systems..I dont have access to this system to 
analyse further nor do I have much knowledge on this 2D/awt multiresolution 
image side of things..

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

PR: https://git.openjdk.java.net/jdk/pull/9011

Reply via email to