HI, I am performing the rotate operation on planarimage.my code to rotate the image is:
private PlanarImage rotateImage(RenderedImage image){ ParameterBlock pg = new ParameterBlock(); float y = (float)image.getHeight()/2; float x = (float)image.getWidth()/2; float angle = (float)Math.toRadians(90); pg.addSource(image); pg.add(x); pg.add(y); pg.add(angle); pg.add(Interpolation.getInstance(Interpolation.INTERP_NEAREST)); return JAI.create("rotate",pg); } the resulting planarimage is null.nothing is diaplayed on canvas.when i am printing the properties of the resulting planarimage it show me height is 0 ans widht is 0. i can't understand why it give me null image. what is wrong in my code???can anyone suggest the right way to do the rotation through JAI. Regards, Sonal. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".