I am using JAI crop function with starting pixels, width and height. But starting pixels is not working. It is cropping the image always begginning from left side (0,0) to the given (width,height). You can find my code below. I am waiting for your responses.
I don't think the crop function would arbitrarily ignore your (x,y). Are you sure your x and y are not 0? Prove to yourself that they're not by adding some System.out calls just before they get added to the parameter block.
Also, I'm not familiar with the function getParameterBlockForImage(image)?