Mailing Lists: Apple Mailing Lists

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

Re: cache or draw direct?



On May 12, 2005, at 20:22, R. Scott Thompson wrote:

Well... using HIThemeDrawTextBox may not be the best choice. You might get better performance using ATSUI directly. However, I can't imagine that you are going to come up with a ruler based on simple lines that is going to tax Quartz 2D. Particularly if you use CGContextAddLines effectively.

But AddLines draws a single connected path? Or has that been changed in 10.4? Or are you suggesting that instead of drawing a bunch of separate lines with moveto/lineto, I could connect them all together and each tick would essentially get drawn twice, like:


line to the right - line down - line back up - repeat

You could also record the drawings into a PDF in memory and replay that PDF every time you wanted to draw the ruler.

Ewww. :)

That's a shame really because what you are describing is exactly what CGLayer is designed for.

Lots and lots of our customers are still running our 10-year-old product (as opposed to our current product) on OS9. Imagine telling them they need to buy new machines just so I can draw the rulers in a different way, and they'll pretty much look and behave *exactly* as they did before. :)


_________________________________________________________
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
References: 
 >cache or draw direct? (From: "Steve Mills" <email@hidden>)
 >Re: cache or draw direct? (From: "R. Scott Thompson" <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.