Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 408e5d5c
authored
Jun 04, 2013
by
Liv Haapala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed face image's aspect ratio
1 parent
7cf04205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/CardPrintBean.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/CardPrintBean.java
View file @
408e5d5
...
...
@@ -5,6 +5,7 @@ import java.awt.Font;
import
java.awt.Graphics2D
;
import
java.awt.Paint
;
import
java.awt.RenderingHints
;
import
java.awt.geom.AffineTransform
;
import
java.awt.geom.Point2D
;
import
java.awt.geom.Rectangle2D
;
import
java.awt.image.BufferedImage
;
...
...
@@ -260,10 +261,7 @@ public class CardPrintBean implements CardPrintBeanLocal {
g
.
drawImage
(
base
,
0
,
0
,
base
.
getWidth
(),
base
.
getHeight
(),
null
);
// g.drawImage(face, AffineTransform.getScaleInstance(0.31, 0.31),
// null);
//faceImage.scaleBy(((410.0 * 0.245) / faceImage.getHeight()));
g
.
drawImage
(
face
,
166
,
241
,
318
,
400
,
null
);
g
.
drawImage
(
face
,
174
,
237
,
301
,
410
,
null
);
g
.
setFont
(
new
Font
(
"Century gothic"
,
Font
.
PLAIN
,
70
));
Font
font
=
new
Font
(
"Century gothic"
,
Font
.
PLAIN
,
70
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment