Re: [JAVA2D] Rectangle and background clipping issue

2007-11-23 Thread java2d
Marking issue as resolved... -- And loving it, -Q _ [EMAIL PROTECTED] (Replace the SixFour with numbers to email me) [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=246988

Re: [JAVA2D] Rectangle and background clipping issue

2007-11-21 Thread java2d
Hi Dmitri, First of all, did you determine (by profiling and such) that it is expensive or is this your gut feeling? It is important to work with correct data, and sometimes our assumptions about performance implications may be incorrect (I get this stuff wrong all the time). I have

Re: [JAVA2D] Rectangle and background clipping issue

2007-11-21 Thread Dmitri Trembovetski
[EMAIL PROTECTED] wrote: Hi Dmitri, First of all, did you determine (by profiling and such) that it is expensive or is this your gut feeling? It is important to work with correct data, and sometimes our assumptions about performance implications may be incorrect (I get this stuff wrong

Re: [JAVA2D] Rectangle and background clipping issue

2007-11-21 Thread java2d
If the clip would be constructed once and then reused a lot, then the Area operations that Dmitri posted are the most general and safest way (but not the fastest) to construct it. On the other hand, if all of the foreground rectangles are *known* to be non-overlapping, and if the background

Re: [JAVA2D] Rectangle and background clipping issue

2007-11-21 Thread java2d
Thanks Dmitri - that works a treat. -- And loving it, -Q _ [EMAIL PROTECTED] (Replace the SixFour with numbers to email me) [Message sent by forum member 'qu0ll' (qu0ll)] http://forums.java.net/jive/thread.jspa?messageID=246696

[JAVA2D] Rectangle and background clipping issue

2007-11-20 Thread java2d
In simplified terms, I have a situation where I am drawing a large filled Rectangle and then drawing other smaller filled rectangles in front of or on top of the large one. The rectangles at the front do not completely cover the large rectangle at the back so there is a region of the back