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

Method drawBorderImage

forge-gui-mobile/src/forge/Graphics.java:753–765  ·  view source on GitHub ↗
(FImage image, Color borderColor, Color tintColor, float x, float y, float w, float h, boolean tint)

Source from the content-addressed store, hash-verified

751 }
752
753 public void drawBorderImage(FImage image, Color borderColor, Color tintColor, float x, float y, float w, float h, boolean tint) {
754 float oldalpha = alphaComposite;
755 if (tint && !tintColor.equals(borderColor)) {
756 drawRoundRect(2f, borderLining(borderColor.toString()), x, y, w, h, (h - w) / 12);
757 fillRoundRect(tintColor, x, y, w, h, (h - w) / 12);
758 } else {
759 if (image != null) {
760 image.draw(this, x, y, w, h);
761 fillRoundRect(borderColor, x, y, w, h, (h - w) / 10);//show corners edges
762 }
763 }
764 setAlphaComposite(oldalpha);
765 }
766
767 public void drawborderImage(Color borderColor, float x, float y, float w, float h) {
768 float oldalpha = alphaComposite;

Callers 1

drawCardMethod · 0.80

Calls 7

drawRoundRectMethod · 0.95
borderLiningMethod · 0.95
fillRoundRectMethod · 0.95
setAlphaCompositeMethod · 0.95
drawMethod · 0.65
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected