MCPcopy Index your code
hub / github.com/benfry/processing4 / loadImage

Method loadImage

core/src/processing/core/PShape.java:1948–1958  ·  view source on GitHub ↗
(PGraphics g)

Source from the content-addressed store, hash-verified

1946 }
1947
1948 private void loadImage(PGraphics g){
1949
1950 if(this.imagePath.startsWith("data:image")){
1951 loadBase64Image();
1952 }
1953
1954 if(this.imagePath.startsWith("file://")){
1955 loadFileSystemImage(g);
1956 }
1957 this.imagePath = null;
1958 }
1959
1960 private void loadFileSystemImage(PGraphics g){
1961 imagePath = imagePath.substring(7);

Callers 1

drawPrimitiveMethod · 0.95

Calls 2

loadBase64ImageMethod · 0.95
loadFileSystemImageMethod · 0.95

Tested by

no test coverage detected