PDA

View Full Version : negative dashing?



Nils Pipenbrinck
04-28-2006, 07:19 AM
Just wondering what to do with negative and zero length elements in a dash list?

Ignore them completely? Merge them with adjecting on/off segments?

Espen
05-08-2006, 06:21 AM
Dashes of length 0 are drawn only if the end cap style is VG_CAP_ROUND or VG_CAP_SQUARE. The incoming and outgoing tangents are evaluated at the point, using the vgPointAlongPath algorithm. The end caps are drawn using the orientation of each tangent, and a join is drawn between them if the tangent directions differ. If the end cap style is VG_CAP_BUTT, nothing will be drawn. A dash, or space between dashes, with length less than 0 is treated as having a length of 0.

I hope that helps.

Nils Pipenbrinck
05-12-2006, 02:08 AM
I hope that helps.

It helps..

Imho stuff like that should find it's way into the official specification one day.

vywong
05-12-2006, 08:59 PM
Actually, it is in the OpenVG spec (p77, last paragraph):

"A dash, or space between dashes, with length less than 0 is treated as having a length of 0."