forked from External/mage
[card.plugin] Displaying JXPanel in case there is no image.
This commit is contained in:
parent
502b21fddb
commit
3a0fd73854
4 changed files with 40 additions and 2 deletions
|
|
@ -144,6 +144,10 @@ public class ImageCache {
|
|||
* Returns an image scaled to the size given
|
||||
*/
|
||||
public static BufferedImage getNormalSizeImage(BufferedImage original) {
|
||||
if (original == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
int srcWidth = original.getWidth();
|
||||
int srcHeight = original.getHeight();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue