Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
18117e1a
Commit
18117e1a
authored
Nov 05, 2024
by
王祖波
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字体更换
parent
897a1469
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ImageCombined.java
...haoban/manage/service/context/combined/ImageCombined.java
+4
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/context/combined/ImageCombined.java
View file @
18117e1a
...
...
@@ -83,11 +83,11 @@ public class ImageCombined {
private
static
final
int
QR_WIDTH_REFERENCE
=
136
;
private
static
final
String
LARGE_IMAGE_URL
=
"https://
revan-1251519181.cos.ap-shanghai.myqcloud.com/image/material_content-29dd73e4f9fb4a9eaf38ae1a3158bc91
.jpg?imageView2/2/w/1080/h/10800/format/jpg"
;
private
static
final
String
LARGE_IMAGE_URL
=
"https://
aumam-1251519181.cos.ap-shanghai.myqcloud.com/image/material_content-0ac283c9ed334ce894fe6bbcb9161408
.jpg?imageView2/2/w/1080/h/10800/format/jpg"
;
private
static
final
String
QR_CODE_URL
=
"https://gicinner-1251519181.cos.ap-shanghai.myqcloud.com/image/material_content-4ffc77073ca1476fb264bf1be9f11383.png"
;
private
static
final
String
STORE_NAME
=
"杭州大厦"
;
private
static
final
String
GUIDE_NAME
=
"翁坚鹏为您推荐"
;
private
static
final
String
OUTPUT_PATH
=
"/Users/wang/Downloads/output_image
6
.jpg"
;
private
static
final
String
OUTPUT_PATH
=
"/Users/wang/Downloads/output_image
17
.jpg"
;
static
{
ImageIO
.
scanForPlugins
();
// 初始化图像插件
...
...
@@ -241,12 +241,12 @@ public class ImageCombined {
// 添加门店名称,距底部88px
g
.
setColor
(
new
Color
(
36
,
40
,
53
));
g
.
setFont
(
new
Font
(
"
Arial
"
,
Font
.
PLAIN
,
30
));
g
.
setFont
(
new
Font
(
"
Microsoft YaHei
"
,
Font
.
PLAIN
,
30
));
drawSingleLineText
(
g
,
lineOne
,
30
,
finalHeight
-
WHITE_SPACE_HEIGHT
+
72
,
width
-
196
);
// 留出左右边距
// 添加推荐人信息,距底部40px
g
.
setColor
(
new
Color
(
151
,
155
,
165
));
g
.
setFont
(
new
Font
(
"
Arial
"
,
Font
.
PLAIN
,
26
));
g
.
setFont
(
new
Font
(
"
Microsoft YaHei
"
,
Font
.
PLAIN
,
26
));
drawSingleLineText
(
g
,
lineTwo
,
30
,
finalHeight
-
WHITE_SPACE_HEIGHT
+
120
,
width
-
196
);
// 留出左右边距
// 添加二维码,距底部12px
...
...
王祖波
@wangzubo
mentioned in commit
8a1c8635
Nov 05, 2024
mentioned in commit
8a1c8635
mentioned in commit 8a1c8635a7ce4690eaa1ff73b862df19a9655a05
Toggle commit list
王祖波
@wangzubo
mentioned in merge request
!2294 (merged)
Nov 05, 2024
mentioned in merge request
!2294 (merged)
mentioned in merge request !2294
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment