I get the pixels from BufferedImage using the method getRGB(). The pixels are stored in array called data[]. After some manipulation on data array, I need to create a BufferedImage again so that I can pass it to a module which will display the modified image, from this data array, but I am stuck with it.
I get the pixels from BufferedImage using the method getRGB() . The pixels are
Share
Then set the pixels again.
PS: as stated in the comments, please use the answer from @TacticalCoder