Hi Csongor,
Well, there's magic...
Sorry, couldn't resist. Obviously this work has to be done SOMEWHERE.
So, even if you could just pass it off to another class, possibly JAI as you
mentioned previously, something like that is getting done. Is it more
elegant to pass to a hidden ugly routine than to have it locally?
There are always things that can be done to make this smarter. For
example, you could do everything in one buffer; you could have the buffer
the size of the viewport view only, handling redraw and scrolling yourself.
You could have a buffer only the size of a raster row and really save
memory.
You could any number of things and, as usual, there are tradeoffs for
each. I've found over time as a developer and consultant that what I call
'choosing the best efficiency' can be the most important thing I contribute.
The answer I gave is probably the easiest of the more efficient ( in terms
of time, effort, memory and performance ) ones. I usually step through:
'Is that Good Enough?' No? Next step.
non-elegant 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: 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
>
>
>On Thu, 4 Nov 1999, Joe Sam Shirah wrote:
>
>> 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?
>
>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 choice?
>
>Yours,
>
>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".