Image not found
in
Android Processing
•
2 years ago
Hi guys!
I'm a noob in android processing and I got a problem.
When I want to load an image it says: "Could not find the image bgmountain.bmp.
Where do I have to put the image? In my skech folder?
In standard mode, Pimage works.
Debugging in android mode on the emulator and on the device works, when i run something without pimage.
Greets
ElendilCH
I'm a noob in android processing and I got a problem.
When I want to load an image it says: "Could not find the image bgmountain.bmp.
Where do I have to put the image? In my skech folder?
In standard mode, Pimage works.
Debugging in android mode on the emulator and on the device works, when i run something without pimage.
- PImage bgmountain;
////////////////////////////////////////////////////////////////////////
void setup()
{
//size(480,800);
size(screenWidth, screenHeight, A2D);
orientation(LANDSCAPE);
bgmountain = loadImage("bgmountain.bmp");
background(bgmountain);
noStroke();
smooth();
}
////////////////////////////////////////////////////////////////////////
void draw()
{
background(bgmountain);
pushStyle();
fill(180,100,100);
rect(mouseX, mouseY, 50, 50);
popStyle();
}
Greets
ElendilCH
1