Changing colors of an image in real time
I am trying to get an image raw data in an int array using getRGB() in order to change the color of the image.
But it is working fine in simulator for any image. if i install it in real device say Nokia 6600 the getRGB() method is not working for large .png image like size (88X57) because the device gets hang while we are using large image but it is working fine for small image.
Pls give me some idea how to use getRGB() for large image.
Following is the sample code
int imageWidth = img.getWidth();
int imageHeight = img.getHeight();
int raw = new int[imageWidth*imageHeight];
img.getRGB(raw, 0, imageWidth, 0, 0, imageWidth, imageHeight);
Thanks in advance :D