mbien commented on code in PR #8310:
URL: https://github.com/apache/netbeans/pull/8310#discussion_r1990299030
##########
platform/core.windows/src/org/netbeans/core/windows/view/dnd/DragWindow.java:
##########
@@ -121,25 +130,40 @@ private BufferedImage createImageBuffer( BufferedImage
src ) {
return res;
}
+ private static void drawImageScaled(Graphics2D g2d, Image image, int x,
int y) {
+ AffineTransform oldTransform = g2d.getTransform();
Review Comment:
2 space indentation here
##########
platform/core.windows/src/org/netbeans/core/windows/view/dnd/DragWindow.java:
##########
@@ -95,15 +102,17 @@ private BufferedImage createContentImage( Component c,
Dimension contentSize ) {
GraphicsConfiguration config =
GraphicsEnvironment.getLocalGraphicsEnvironment()
.getDefaultScreenDevice().getDefaultConfiguration();
- BufferedImage res = config.createCompatibleImage(contentSize.width,
contentSize.height);
+ BufferedImage res = config.createCompatibleImage(
+ contentSize.width * DPI_SCALE, contentSize.height * DPI_SCALE);
Graphics2D g = res.createGraphics();
+ g.scale(DPI_SCALE, DPI_SCALE);
Review Comment:
this would be quite a large image on 4k screens. You sure its worth it to
double the size to have the scaled down version look better?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists