Results 1 to 4 of 4

Thread: negative dashing?

  1. #1

    negative dashing?

    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?

  2. #2
    Junior Member
    Join Date
    May 2006
    Posts
    5
    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.

  3. #3
    Quote Originally Posted by Espen
    I hope that helps.
    It helps..

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

  4. #4
    Junior Member
    Join Date
    May 2006
    Posts
    1
    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."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •