Re: [JAVA2D] resizing image in a canvas

1999-01-02 Thread Joe Sam Shirah
: [JAVA2D] resizing image in a canvas Hello, I am looking for solution to the following problem: I would like to plot graphs and I thought that I would use Java2D. My idea is to create a BufferedImage, in which I will draw, and drop it into a canvas (JPanel or so) and drop this into a ScrollPane

Re: [JAVA2D] resizing image in a canvas

1999-01-02 Thread Joe Sam Shirah
___ -Original Message- From: Somogyi Csongor [EMAIL PROTECTED] To: Joe Sam Shirah [EMAIL PROTECTED] Cc: Discussion list for Java 2D API [EMAIL PROTECTED] Date: Thursday, November 04, 1999 12:06 PM Subject: Re: [JAVA2D] resizing image in a canvas

Re: [JAVA2D] resizing image in a canvas

1999-01-02 Thread John Caron
You only have to create a new BufferedImage when the user resizes the window. Zooming and panning is done with a redraw to the existing image. Hi Joe Sam, Yes, I could but it's not elegant. Why do I have to recreate in every zooming step one large (~MB size) buffer? Or are there no other