[ java ] in KIDS 글 쓴 이(By): Darkness () 날 짜 (Date): 2001년 1월 6일 토요일 오전 11시 40분 36초 제 목(Title): Re: 왜 자바에는 점찍는 메쏘드는 없을까 ^,.^ 찾아냈습니다. 무안하게도(^^;) 이런 class에 이런 method가 있었네요.. java.lang.Object | +-java.awt.Image | +-java.awt.image.BufferedImage ... int getRGB(int x, int y) int[] getRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) void setRGB(int x, int y, int rgb) void setRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize) 그리고 윗분 말씀 처럼 PixelGrabber에서도 pixel단위의 처리가 가능 하군요. 그런데 PixelGrabber class의 정확한 역할인 무엇인가요? BufferedImage는 직관적으로 이해가 잘 되네요... The PixelGrabber class implements an ImageConsumer which can be attached to an Image or ImageProducer object to retrieve a subset of the pixels in that image. 이렇게 나오기는 했는데, 역할을 잘 모르겠네요.. ImageConsumer 와 ImageProducer class는 또 뭐죠?? ^^; class나 interface의 역할만 정확히 꼬집어 내면, 그때부터는 쉬운데, 꼬집에 내는일이 쉽지가 않군요. 이 클래스 저 클래스 쫓아다니다보면, 내가 뭘 찾고있었는지를 까먹어버려요.. 흑흑.. |