mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
FIX white border subimage cut with Foil effect
Signed-off-by: leriomaggio <valeriomaggio@gmail.com>
This commit is contained in:
@@ -126,7 +126,7 @@ public final class FImageUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColorModel cm = plainImage.getColorModel();
|
ColorModel cm = plainImage.getColorModel();
|
||||||
BufferedImage foilImage = new BufferedImage(cm, plainImage.copyData(null), cm.isAlphaPremultiplied(), null);
|
BufferedImage foilImage = new BufferedImage(cm, plainImage.copyData(plainImage.getRaster().createCompatibleWritableRaster()), cm.isAlphaPremultiplied(), null);
|
||||||
final String fl = String.format("foil%02d", foilIndex);
|
final String fl = String.format("foil%02d", foilIndex);
|
||||||
CardFaceSymbols.drawOther(foilImage.getGraphics(), fl, 0, 0, foilImage.getWidth(), foilImage.getHeight());
|
CardFaceSymbols.drawOther(foilImage.getGraphics(), fl, 0, 0, foilImage.getWidth(), foilImage.getHeight());
|
||||||
return foilImage;
|
return foilImage;
|
||||||
|
|||||||
Reference in New Issue
Block a user