I have been playing with images recently, particularly grabbing pixel data from an image using the PixelGrabber classes and storing this pixel data in an int array. From t here I have been reading various information about argb. I then started to edit this pixel data ( again, it is an int array ) and now I would like to draw this new image. ( I am just learning about pixel data, and things I can do...my first example is just making a color image grayscale ).
Now, if I take my int array and draw out each individual pixel, I can do that...but it is dreadfully slow on a 450MHz machine.
So...what I want to know, is given an int array of pixel data, how can I change this into a Java Image object. As I mentioned above, drawing each individual pixel to an image object is not an option, as it is way too slow...surly there must be a way in java to change pixel data to an image? ( since there is a way to change an image into pixel data )
Thank you for any help,