MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / toImage

Method toImage

CodenameOne/src/com/codename1/ui/FontImage.java:7994–8002  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7992 ///
7993 /// the encoded image or null if the operation failed
7994 public Image toImage() {
7995 if (Image.isAlphaMutableImageSupported()) {
7996 Image img = ImageFactory.createImage(null, width, height, 0);
7997 Graphics g = img.getGraphics();
7998 g.drawImage(this, 0, 0);
7999 return img;
8000 }
8001 return null;
8002 }
8003
8004 /// {@inheritDoc}
8005 @Override

Callers 15

calcPreferredSizeMethod · 0.95
toEncodedImageMethod · 0.95
captureScreenMethod · 0.45
captureScreenshotMethod · 0.45
runMethod · 0.45
invoke3Method · 0.45
invoke3Method · 0.45
invoke0Method · 0.45
invoke4Method · 0.45
invoke5Method · 0.45
invoke7Method · 0.45
invoke2Method · 0.45

Calls 4

createImageMethod · 0.95
getGraphicsMethod · 0.95
drawImageMethod · 0.95

Tested by 4

invoke3Method · 0.36
startMethod · 0.36
testGradientAlphaMethod · 0.36