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