MCPcopy Index your code
hub / github.com/processing/processing / parseImage

Method parseImage

core/src/processing/core/PShapeSVG.java:455–468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453
454
455 protected void parseImage() {
456 kind = RECT;
457 textureMode = NORMAL;
458
459 family = PRIMITIVE;
460 params = new float[] {
461 getFloatWithUnit(element, "x", svgWidth),
462 getFloatWithUnit(element, "y", svgHeight),
463 getFloatWithUnit(element, "width", svgWidth),
464 getFloatWithUnit(element, "height", svgHeight)
465 };
466
467 this.imagePath = element.getString("xlink:href");
468 }
469
470 /**
471 * Parse a polyline or polygon from an SVG file.

Callers 1

parseChildMethod · 0.95

Calls 2

getFloatWithUnitMethod · 0.95
getStringMethod · 0.65

Tested by

no test coverage detected