>>74
もしくは1ドットあたりをデーターに格納すればいい

byte data[240*240];
int p=0;
for(int x=0 to X=240){
for(iny y=0 to y=240) {
data[p++]=g.getPixel(x,y);
}
}