I have displayed a image on canvas and trying to get the some part of image using getPixesls method.But unable to do so.
Can some one help me where i went wrong.
Here the code snippet
where img is the image and x1 and y1 are defined cordinates.
where rgbdata is array, w3,x3,y3,h3 are defined int values.
when i print the rgbdata itz printing -1
I tried using int and short types aswell but no luck
Where i went wrong.
Thanks in advance