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:
spjspj 2018-02-26 15:22:59 +11:00
parent 576c1aec57
commit afeb1c16ac

View file

@ -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);