On Tue, 7 Jun 2022 09:00:30 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

>> 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..

If I remember correctly, MRI will contain only one image captured by Robot, so 
it would return the only image it stores, which would not be scaled down if 
High DPI is in effect.

However, the test is supposed to run with `UIScale=1`, so this should make any 
difference.

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

PR: https://git.openjdk.org/jdk/pull/9011

Reply via email to