mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
Slightly better rendering.
This commit is contained in:
parent
92e77f79b6
commit
ea650dcab1
1 changed files with 4 additions and 0 deletions
|
@ -327,6 +327,10 @@ public abstract class CardRenderer {
|
|||
= faceArtImage.getSubimage(
|
||||
(int) (artRect.getX() * fullCardImgWidth), (int) (artRect.getY() * fullCardImgHeight),
|
||||
(int) artWidth, (int) artHeight);*/
|
||||
RenderingHints rh = new RenderingHints(
|
||||
RenderingHints.KEY_INTERPOLATION,
|
||||
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
|
||||
g.setRenderingHints(rh);
|
||||
g.drawImage(faceArtImage,
|
||||
x, y,
|
||||
(int) targetWidth, (int) targetHeight,
|
||||
|
|
Loading…
Reference in a new issue