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

Method loadImage

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

Source from the content-addressed store, hash-verified

1889 }
1890
1891 private void loadImage(PGraphics g){
1892
1893 if(this.imagePath.startsWith("data:image")){
1894 loadBase64Image();
1895 }
1896
1897 if(this.imagePath.startsWith("file://")){
1898 loadFileSystemImage(g);
1899 }
1900 this.imagePath = null;
1901 }
1902
1903 private void loadFileSystemImage(PGraphics g){
1904 imagePath = imagePath.substring(7);

Callers 2

drawPrimitiveMethod · 0.95
loadFileSystemImageMethod · 0.45

Calls 3

loadBase64ImageMethod · 0.95
loadFileSystemImageMethod · 0.95
startsWithMethod · 0.80

Tested by

no test coverage detected