Getting pixel data from an image using java

前端 未结 6 1136
眼角桃花
眼角桃花 2020-12-02 14:11

I\'m trying to get the pixel rgb values from a 64 x 48 bit image. I get some values but nowhere near the 3072 (= 64 x 48) values that I\'m expectin

6条回答
  •  眼角桃花
    2020-12-02 14:26

    Why didn't use just use:

    public int[] getRGB(int startX,
                        int startY,
                        int w,
                        int h,
                        int[] rgbArray,
                        int offset,
                        int scansize)
    

    It's built-in, man.

提交回复
热议问题