Hi,
I need to fill regions with simple, two colored patterns, such as horizontal/vertical/diagonal lines, crosses, diagonal crosses, etc. The patterns have to be continous among several paint operations, which means that if I fill an area and then a second area that intersects with the first, the lines of the pattern should be horizontally and vertically continous. The shapes that need to be filled will be rectangular.
Should I paint tiles using a buffered image? Or is drawing all the lines using g.drawLine() the way to go? Or should I use my very own special Paint class?
And as a second question: When painting strokes, how can I make sure that the stroke pattern is continous among several paint operations? Let's say I first paint a line from x=10 to x=23, then from x=24 to x=50. How can I make sure the stroke pattern does not restart at 24? Would translating the Graphics object change anything? Clipping? Setting a transform? Or more general: What parameters determe the starting point of a stroke pattern?
Any ideas are welcome
Jan
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
