Image ALL=getImage(this.getDocumentBase(),"temp1.bmp");
int w=565;
int h=415;
int pixels = new int[w*h];
PixelGrabber pg = new PixelGrabber(ALL,0,0,w,h,pixels,0,w);
try {
pg.grabPixels();
} catch (InterruptedException e) {}
pixels = (int[])pg.getPixels() ;
int pi=pixels[me.getX()+me.getY()*w]; // me.getX(),me.getY()에 있는 색값 가져오기
댓글 없음:
댓글 쓰기