|
@@ -57,7 +57,7 @@ public class CreatePOPService {
|
|
scorex = 780;
|
|
scorex = 780;
|
|
fenx = 890;
|
|
fenx = 890;
|
|
}
|
|
}
|
|
- Font rewardFirstFont = new Font("PingFang SC Bold", Font.BOLD, 130);
|
|
|
|
|
|
+ Font rewardFirstFont = new Font("DejaVuLGCSansMono", Font.BOLD, 130);
|
|
AffineTransform affineTransform = new AffineTransform();
|
|
AffineTransform affineTransform = new AffineTransform();
|
|
affineTransform.rotate(Math.toRadians(15), 0, 0);
|
|
affineTransform.rotate(Math.toRadians(15), 0, 0);
|
|
Font rotatedFont = rewardFirstFont.deriveFont(affineTransform);
|
|
Font rotatedFont = rewardFirstFont.deriveFont(affineTransform);
|
|
@@ -65,7 +65,7 @@ public class CreatePOPService {
|
|
g2.setFont(rotatedFont);
|
|
g2.setFont(rotatedFont);
|
|
g2.drawString(String.valueOf(score),scorex,50);
|
|
g2.drawString(String.valueOf(score),scorex,50);
|
|
|
|
|
|
- Font rewardLastFont = new Font("PingFang SC Bold", Font.CENTER_BASELINE, 70);
|
|
|
|
|
|
+ Font rewardLastFont = new Font("DejaVuLGCSansMono", Font.CENTER_BASELINE, 70);
|
|
AffineTransform affineTransform2 = new AffineTransform();
|
|
AffineTransform affineTransform2 = new AffineTransform();
|
|
affineTransform2.rotate(Math.toRadians(15), 0, 0);
|
|
affineTransform2.rotate(Math.toRadians(15), 0, 0);
|
|
Font rotatedFont2 = rewardLastFont.deriveFont(affineTransform);
|
|
Font rotatedFont2 = rewardLastFont.deriveFont(affineTransform);
|
|
@@ -128,7 +128,7 @@ public class CreatePOPService {
|
|
// drawString(g, Color.decode("#323232"), new Font("PingFang SC Bold", Font.BOLD, 34), title, 0, 400, width, 12, 5, true);
|
|
// drawString(g, Color.decode("#323232"), new Font("PingFang SC Bold", Font.BOLD, 34), title, 0, 400, width, 12, 5, true);
|
|
// //把宠物图片和二维码图片划入背景
|
|
// //把宠物图片和二维码图片划入背景
|
|
// g.drawImage(ImageIO.read(petImg), 130, 90, 362, 250, null);
|
|
// g.drawImage(ImageIO.read(petImg), 130, 90, 362, 250, null);
|
|
- g.drawImage(ImageIO.read(qrCodeImg), 266, height-235, 220, 220, null);
|
|
|
|
|
|
+ g.drawImage(ImageIO.read(qrCodeImg), 430, height-278, 220, 220, null);
|
|
// ```````````结束作画```````````
|
|
// ```````````结束作画```````````
|
|
//7、处理画作
|
|
//7、处理画作
|
|
g.dispose();
|
|
g.dispose();
|