Sampling BufferedImage
So I have a bufferd image that I:
- Convert into an int array via image.getRGB()
- Convert into a ByteBuffer (1 byte per pixel) with a for loop running through that int array. (I only use 1 color channel)
Now I need to sample the ByteBuffer, but I do not know which order image.getRGB() returned the pixels in.
I tried doing this:
but the results show that the data is not stored in that format