Browse Source

Pull request #6165: REPORT-60399 【JDK11设计器】启动画面模糊

Merge in DESIGN/design from ~HADES/design:release/11.0 to release/11.0

* commit '97b64a0b1bcb008ee5461ea9b067c5af7949f6d4':
  REPORT-60399 【JDK11设计器】启动画面模糊
bugfix/11.0
Hades 3 years ago
parent
commit
b74278d7ef
  1. 2
      designer-realize/src/main/java/com/fr/start/common/SplashPane4WinAndJDK11.java

2
designer-realize/src/main/java/com/fr/start/common/SplashPane4WinAndJDK11.java

@ -7,6 +7,7 @@ import com.fr.design.locale.impl.SplashMark;
import com.fr.general.IOUtils;
import com.fr.general.locale.LocaleCenter;
import java.awt.RenderingHints;
import javax.swing.Icon;
import java.awt.Dimension;
import java.awt.Graphics;
@ -53,6 +54,7 @@ public class SplashPane4WinAndJDK11 extends SplashPane{
}
BufferedImage image = BaseUtils.readImage(imagePath);
Graphics2D newG = (Graphics2D)g.create(0, 0, image.getWidth(), image.getHeight());
newG.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
newG.scale(0.5D, 0.5D);
newG.drawImage(image, 0, 0, null);
newG.scale(1.0D, 1.0D);

Loading…
Cancel
Save