Java help!? sorry :P
Posted: Tue Aug 16, 2011 9:41 am
Hello everyone! I have a problem and I'm not quite sure why it's a problem. Here is the code that is giving me a problem
For some reason, nothing runs inside for(blah){}
No errors, no nothing. rect.height and rect.width are not 0. Maybe I'm a bit too stoned to see whats wrong but this is driving me insane!! Could somebody please help me?
Nothing is happening for me inside the for loops
Code: Select all
private void analyzeImage(BufferedImage i){
for (int y = 0; y == rect.height; y++){
for (int x = 0; x == rect.width; x++){
robot.getPixelColor(x, y);
}
}
}
No errors, no nothing. rect.height and rect.width are not 0. Maybe I'm a bit too stoned to see whats wrong but this is driving me insane!! Could somebody please help me?
Nothing is happening for me inside the for loops