mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Adding in way to render Zendikar full art lands.
Things still to do: 1) Get everyone to download the full art Face images 2) Add in the collector number to the Face images (<ImageDirector>/FACE/ZEN/Island.<numberneeded>.jpg for example) 3) Add in the ability to draw say BFZ / HOU full art lands as well. 4) Maybe even add in an UST (Unstable) way of rendering lands (with the swoosh of opaque full art down the bottom).
This commit is contained in:
parent
576c1aec57
commit
afeb1c16ac
1 changed files with 11 additions and 0 deletions
|
@ -584,14 +584,25 @@ public class ModernCardRenderer extends CardRenderer {
|
|||
int cardWidth, int cardHeight) {
|
||||
|
||||
BufferedImage artToUse = faceArtImage;
|
||||
boolean hadToUseFullArt = false;
|
||||
if (faceArtImage == null) {
|
||||
if (artImage == null) {
|
||||
return;
|
||||
}
|
||||
hadToUseFullArt = true;
|
||||
artToUse = artImage;
|
||||
}
|
||||
int srcW = artToUse.getWidth();
|
||||
int srcH = artToUse.getHeight();
|
||||
|
||||
if (hadToUseFullArt) {
|
||||
// Get a box based on the standard scan from gatherer.
|
||||
// Width = 185/223 pixels (centered)
|
||||
// Height = 220/310, 38 pixels from top
|
||||
int subx = 19 * srcW / 223;
|
||||
int suby = 38 * srcH / 310;
|
||||
artToUse = artImage.getSubimage(subx, suby, 185*srcW / 223, 220*srcH / 310);
|
||||
}
|
||||
|
||||
Rectangle2D rect = new Rectangle2D.Float();
|
||||
rect.setRect(0, 0, srcW, srcH);
|
||||
|
|
Loading…
Reference in a new issue