I am having a serious problem with the Image.getRGB() method.
Suppose I have a specific ARGB byte array and I create an image of it. The thing is when I try to obtain the ARGB array of the new image again using the getRGB() method, the resulting array is not exactly the previous one which I just made the image based on! There are slightly differences between the two arrays. In this example according to my observation one bit of the all red and green and blue bytes have changed, mostly the alpha byte without any changes.
I read the J2ME Image.getRGB() API which says:
"The returned values are not guaranteed to be identical to values from the original source, such as from createRGBImage or from a PNG image. Color values may be resampled to reflect the display capabilities of the device (for example, red, green or blue pixels may all be represented by the same gray value on a grayscale device). "
I desperately need your help how to overcome this problem. I just need the original RGB!!
Please do reply anyone who has a solution!

Reply With Quote
(but I'm not aware of any Java ME ones)

