MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / makeImage

Method makeImage

ij/src/main/java/ij/text/TextCanvas.java:94–103  ·  view source on GitHub ↗
(int iWidth, int iHeight)

Source from the content-addressed store, hash-verified

92 }
93
94 void makeImage(int iWidth, int iHeight) {
95 iImage=createImage(iWidth, iHeight);
96 if (gImage!=null)
97 gImage.dispose();
98 gImage=iImage.getGraphics();
99 gImage.setFont(fFont);
100 Java2.setAntialiasedText(gImage, antialiased);
101 if (fMetrics==null)
102 fMetrics=gImage.getFontMetrics();
103 }
104
105 void drawColumnLabels(int iWidth) {
106 gImage.setColor(Color.darkGray);

Callers 1

paintMethod · 0.95

Calls 6

setAntialiasedTextMethod · 0.95
getGraphicsMethod · 0.80
setFontMethod · 0.65
createImageMethod · 0.45
disposeMethod · 0.45
getFontMetricsMethod · 0.45

Tested by

no test coverage detected