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

Method createSVG

CodenameOne/src/com/codename1/ui/Image.java:132–138  ·  view source on GitHub ↗
(String baseURL, boolean animated, byte[] data)

Source from the content-addressed store, hash-verified

130 ///
131 /// - `IOException`: if resource lookup fail SVG is unsupported
132 public static Image createSVG(String baseURL, boolean animated, byte[] data) throws IOException {
133 Image i = new Image(Display.impl.createSVGImage(baseURL, data));
134 i.animated = animated;
135 i.svgBaseURL = baseURL;
136 i.svgData = data;
137 return i;
138 }
139
140 /// Creates an indexed image with byte data this method may return a native indexed image rather than
141 /// an instance of the IndexedImage class

Callers 7

scaledImplMethod · 0.95
createImageMethod · 0.95
createSVGMethod · 0.95
addToResourcesMethod · 0.95
createImageMethod · 0.45
createImageMethod · 0.45

Calls 1

createSVGImageMethod · 0.45

Tested by

no test coverage detected