PDA

View Full Version : Directional Patterns



thesidisticme
05-12-2010, 01:50 PM
Hi,
Is there a way I could draw a particular pattern in the direction of my path(Runtime defined)? I am able to define a pattern paint and repeat it but its only the subImage repeating one after the other horizontally. I am reading these pattern to an 10x10 image(size irrelevant).
I havent explored glyphs yet, but can text be rendered the same way?
Thanks!

Ivo Moravec
05-12-2010, 03:07 PM
You can rotate the pattern in a pattern paint through the paint matrices (VG_MATRIX_MODE).
Generally speaking, if it's not scissoring rectangles, bounding boxes or masks, it can be rotated with VG.

thesidisticme
05-12-2010, 03:13 PM
Thanks! This makes my life so much easier!