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