Re: [JAVA2D] JLayeredPane Layers with Canvas

2002-10-17 Thread John Reekie
At some point, something has to paint the line again when you remove the circle, even if it's only by copying a bitmap from offscreen memory. I don't know if LayeredPane can be made to do what you want, sorry... In Diva we have layers, all that happens when something changes is that each layer is

Re: [JAVA2D] Question on enlarging an image

2002-10-17 Thread Chris Campbell
Hi Randy, I would not expect TYPE_BILINEAR and TYPE_NEAREST_NEIGHBOR to produce equally blurry results. Nearest neighbor filtering typically produces blocky images when scaling because it simply replicates pixels. For example, if you're scaling by 3x in each dimension, each source pixel is repli

[JAVA2D] Niblack thresholding

2002-10-17 Thread Marcos Roberto Petry
Hi! I'm looking for a java implementation of Niblack adaptative thresholding method. Someone done it? []'s marcos petry === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA

Re: [JAVA2D] Question on enlarging an image

2002-10-17 Thread Randy Curnutt
Thanks, Chris! I actually tried using the TYPE_BILINEAR and it was equally blurry. Any ideas on why that might be the case?BTW, I'm using a JPEG file. I don't know if that could make a difference. I noticed that their are static constants for TYPE_UNIFORM_SCALE and TYPE_GENERAL_SCALE etc on t

Re: [JAVA2D] JLayeredPane Layers with Canvas

2002-10-17 Thread Abhishek Banugariya
let me explain what i want to do. suppose i have one line ___ now when mouse comes over the end point of the line then i want to highlight that endpoint with small circle like. () (conside () as a full circle and dotted line as complete line) for that i will use the getGraphics()

Re: [JAVA2D] JLayeredPane Layers with Canvas

2002-10-17 Thread Abhishek Banugariya
let me explain what i want to do. suppose i have one line e.g(1) (consider complete line instead of dotted line) now when mouse comes over the end point of the line then i want to highlight that endpoint with small circle like. e.g(2) () (conside () as a full

Re: [JAVA2D] JLayeredPane Layers with Canvas

2002-10-17 Thread John Reekie
I'm not entirely sure I understand the question... but it sounds like you need to remember all the drawn graphics as a data structure. When you change something, you need to figure out the rectangle that completely encloses the changed region, and then redraw all of your drawn graphics that interse