MCPcopy Create free account
hub / github.com/VCVRack/Rack / loadFile

Method loadFile

src/window/Svg.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21void Svg::loadFile(const std::string& filename) {
22 if (handle)
23 nsvgDelete(handle);
24
25 handle = nsvgParseFromFile(filename.c_str(), "px", SVG_DPI);
26 if (!handle)
27 throw Exception("Failed to load SVG %s", filename.c_str());
28 INFO("Loaded SVG %s", filename.c_str());
29}
30
31
32void Svg::loadString(const std::string& str) {

Callers 1

loadMethod · 0.45

Calls 1

ExceptionClass · 0.85

Tested by

no test coverage detected