Hi Nitin,

You seem to be not resizing the image when drawing into the buffered image.

Change this
g2d.drawImage(image, 0, 0, null);
to
g2d.drawImage(image, 0, 0, width, height, null);

Also take a look at this, if you would like to preserve the alpha channel.
http://java.sun.com/products/java-media/2D/reference/faqs/index.html#Q_How_do_I_create_a_resized_copy
[Message sent by forum member 'j2d_lover' (j2d_lover)]

http://forums.java.net/jive/thread.jspa?messageID=138955

===========================================================================
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".

Reply via email to