Hi Csongor,

    I'm sure that I am missing something, but couldn't you create a second
BI big enough to accomodate your largest zoomed Shape ( or zoomed area, )
and then reuse/redraw as you go, using the appropriate height and width?


                                                        Joe Sam


Joe Sam Shirah
Autumn Software
What you don't know DOES hurt you...and your business
___________________________________________

-----Original Message-----
From: Somogyi Csongor <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, November 04, 1999 5:54 AM
Subject: [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. However if I would
>like to zoom graphs then accordingly with resizing the Java2D shapes I
>have to modify the size of the BufferedImage as well. This would lead to
>create a new BufferedImage in every zooming steps.
>Could you give me some better solution to my problem? I found a solution
>in JAI but it is not part of the standard Java 2 API at the moment
>therefore I would like to omit.
>
>Thanks,
>
>Csongor
>

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