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

Method loadFileSystemImage

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

Source from the content-addressed store, hash-verified

1901 }
1902
1903 private void loadFileSystemImage(PGraphics g){
1904 imagePath = imagePath.substring(7);
1905 PImage loadedImage = g.parent.loadImage(imagePath);
1906 if(loadedImage == null){
1907 System.err.println("Error loading image file: " + imagePath);
1908 }else{
1909 setTexture(loadedImage);
1910 }
1911 }
1912
1913 private void loadBase64Image(){
1914 String[] parts = this.imagePath.split(";base64,");

Callers 1

loadImageMethod · 0.95

Calls 3

setTextureMethod · 0.95
loadImageMethod · 0.45
printlnMethod · 0.45

Tested by

no test coverage detected