(PGraphics g)
| 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,"); |
no test coverage detected