MCPcopy Create free account
hub / github.com/Card-Forge/forge / setImage

Method setImage

forge-gui-desktop/src/main/java/forge/toolbox/FSkin.java:1665–1674  ·  view source on GitHub ↗
(final FSkinProp s0, final BufferedImage bim)

Source from the content-addressed store, hash-verified

1663 }
1664
1665 private static void setImage(final FSkinProp s0, final BufferedImage bim) {
1666 int[] tempCoords = s0.getCoords();
1667 x0 = tempCoords[0];
1668 y0 = tempCoords[1];
1669 w0 = tempCoords[2];
1670 h0 = tempCoords[3];
1671
1672 if (bim != null)
1673 SkinImage.setImage(s0, bim.getSubimage(x0, y0, w0, h0));
1674 }
1675
1676 /**
1677 * Sets the look and feel of the GUI based on the selected Forge theme.

Callers 1

loadFullMethod · 0.95

Calls 2

setImageMethod · 0.95
getCoordsMethod · 0.80

Tested by

no test coverage detected