We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi. I am trying to load an image with the code below, but this will give the error:
The method loadImage(String) in the type PApplet is not applicable for the arguments (File) >
How to do this? Thanks.
import android.os.Environment; PImage img; File f; String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath() + "/imgFolder"; String fileName = "noel_28_5_2018_9_9.png"; f = new File(baseDir + "/" + fileName); img = loadImage(f);