mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +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(
|
= faceArtImage.getSubimage(
|
||||||
(int) (artRect.getX() * fullCardImgWidth), (int) (artRect.getY() * fullCardImgHeight),
|
(int) (artRect.getX() * fullCardImgWidth), (int) (artRect.getY() * fullCardImgHeight),
|
||||||
(int) artWidth, (int) artHeight);*/
|
(int) artWidth, (int) artHeight);*/
|
||||||
|
RenderingHints rh = new RenderingHints(
|
||||||
|
RenderingHints.KEY_INTERPOLATION,
|
||||||
|
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
|
||||||
|
g.setRenderingHints(rh);
|
||||||
g.drawImage(faceArtImage,
|
g.drawImage(faceArtImage,
|
||||||
x, y,
|
x, y,
|
||||||
(int) targetWidth, (int) targetHeight,
|
(int) targetWidth, (int) targetHeight,
|
||||||
|
|
Loading…
Reference in a new issue