To check if a selected file is an image, checking for files extension is the way to go?
in
Programming Questions
•
10 months ago
Some thing like this?
- if(loadPath.endsWith(".jpg") ||
- loadPath.endsWith(".jpeg") ||
- loadPath.endsWith(".png") ) {
- PImage temp = loadImage(loadPath);
- }
- else{
- // blah
- }
1