(FImage image, Color borderColor, Color tintColor, float x, float y, float w, float h, boolean tint)
| 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; |
no test coverage detected