Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pattern vs. dash



Can anyone tell me which would result in a faster stroke of a complex path, using a pattern or a dash? I'm changing our marching ants from QD to Quartz. The QD code xor'd 8 different patterns progressively. Switching to Quartz I used a {2,2} dash and increment the phase by 1 each time. This results in very odd animation when running on a 450MHz G3. The bottom third or so of the path draws correctly each time (marching along nicely), but the upper 2/3 or so will sort of jump around, or seem to just toggle between 2 different dash phases. Would stroking with a pattern be any faster? I'll be drawing the pattern to mimmic the QD patterns, which were 45° 4-pixel alternating black/white lines, so I'll probably use something like this as my pattern draw code: BeginPath, (MoveToPoint, LineToPoint) * 3, StrokePath.

_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
email@hidden                       www.multi-ad.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.