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

Method drawImage

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

Source from the content-addressed store, hash-verified

771 }
772
773 public void drawImage(FImage image, Color borderColor, float x, float y, float w, float h) {
774 if (image == null)
775 return;
776 image.draw(this, x, y, w, h);
777 fillRoundRect(borderColor, x + 1, y + 1, w - 1.5f, h - 1.5f, (h - w) / 10);//used by zoom let some edges show...
778 }
779
780 public void drawAvatarImage(FImage image, float x, float y, float w, float h, boolean drawGrayscale, float amount) {
781 if (image == null)

Callers 15

drawNoiseFadeMethod · 0.95
drawPortalFadeMethod · 0.95
drawHueShiftMethod · 0.95
drawChromaticMethod · 0.95
drawRippleMethod · 0.95
drawPixelatedMethod · 0.95
drawPixelatedWarpMethod · 0.95
drawNightDayMethod · 0.95
createPreviewMethod · 0.95
drawMethod · 0.45
drawMethod · 0.45
drawValueMethod · 0.45

Calls 10

fillRoundRectMethod · 0.95
setAlphaCompositeMethod · 0.95
fillRectMethod · 0.95
adjustXMethod · 0.95
adjustYMethod · 0.95
drawFoilMethod · 0.95
drawMethod · 0.65
endMethod · 0.45
minMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected