How can I set a clip for something like a line.
This is what I do and need:
biG.setStroke(new BasicStroke(20,BasicStroke.CAP_ROUND,BasicStroke.JOIN_MITER));
biG.drawLine(x1,y1,x2,y2);
biG.setClip(???);
biG.drawImage(ast,x1,y1,this);
I need to draw the Image exactly on top of the line, because its a translucent one
which should add a nice texture to the background color.
How can I do this?
I tried with polygons but these only help me when the line is in a certain k*90° angle.