Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
hokkapokka
About Me:
Just started with Processing
hokkapokka's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
problem with loading lots of images
[2 Replies]
03-Feb-2011 03:04 PM
Forum:
Programming Questions
Hi people, I try to load images into an array.
This code is not working:
PImage img[];
String lines[];
void setup() {
size(int(screen.width/1.1), int(screen.height/1.1), OPENGL);
smooth();
hint(ENABLE_OPENGL_4X_SMOOTH);
String lines[] = loadStrings("blabla");
for (int i=0; i < lines.length; i++) {
img[i] = loadImage(lines[i]); <- "NullPointerException"
}
}
Is there an alternative?
Ps.: I'm a beginner!
«Prev
Next »
Moderate user : hokkapokka
Forum