Can anybody help me writing a class that will clipp** a line using-a-circle… I’ve bee capable to draw one that will clipp a using a rectangle but using a circle I don’t know from how I should start…if anyone could write the complete source code it would be highly appreciated…
Thanx.
I dunno… that sounds like a pretty complicated problem. Lemme see what I can whip up:
//Constrains the drawing inside a circle that's
//150 pixels in diameter with a center point of 175, 175
Ellipse2D.Double circle = new Ellipse2D.Double(100, 100, 150, 150);
g.setClip(circle);
//draw stuff
;D
Hope that helps!
Thanx… U helped me so much…
;D