Re: [JAVA2D] How to backup the contents of a volatileImage

2008-08-14 Thread java2d
Hi Jim, You got me . . . No, it's not a typo, I did it exactly that way because I was too lazy to make me familiar with the parameters of the method. I thought it has to be the width and height of the image to be drawn. That will explain, why I don't get the result I expected (- the backup

Re: [JAVA2D] VolatileImage.validate() does not (always) work

2008-08-14 Thread Dmitri Trembovetski
[EMAIL PROTECTED] wrote: Hi again, so Dmitri, you would suggest to get the current graphics cinfiguration each time I touch the according image, right. That was the approach I used at the very beginning (as i have shown in one of my code examples here). But still, I have the problem that the

[JAVA2D] Concatenate multiple small images to one large image

2008-08-14 Thread java2d
Hi, What is the best way (based on performance) to concatenate multiple gif-files? We have several small gif files (256x256px) and want to, as fast as possible, allow a client to to request a large image based on width and height and deliver the result as one image containing multiple small

Re: [JAVA2D] Problem with layers

2008-08-14 Thread java2d
I've come across this from a Sun book published in 1999, Java 2D API Graphics http://java.sun.com/developer/Books/2dgraphics/chapter6.html What i would like to know is, 9 years on is this the best way to do it? Is there an alternate framwork, method or pattern? [Message sent by forum member

Re: [JAVA2D] Problem with layers

2008-08-14 Thread java2d
The basic concepts of Java2D are based on the basic concepts of computer graphics, and they have been explored since the 1960's. So a lot of the core concepts are as relevant today as they were in 1999. The painter's model is the key abstraction. When you paint, paint the objects in the

Re: [JAVA2D] drawImage() and isAlphaPremultiplied()

2008-08-14 Thread Jim Graham
Hi Michael, I think you are getting confused by some under-documented APIs that never had a useful purpose for developers and, in consequence, that have some undiscovered bugs in them. coerceData is not the way to make a premultiplied image. Even worse, it can have dangerous effects on an

[JAVA2D] What is the secret to drawing zoomed Swing components?

2008-08-14 Thread java2d
I have read this thread: http://forums.java.net/jive/thread.jspa?threadID=45350tstart=0 and it's very close to the subject matter I am currently researching. But I wanted to ask a higher level question. I thought all Swing components had a UI delegate that drew the component using Java2D