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. :)
_______________________________________________
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