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 18:17, Derek Clegg wrote:

On May 12, 2005, at 4:08 PM, Steve Mills wrote:

What I'm toying with is changing the gworlds to CGImageRefs or CGBitmapContextRefs. (I currently can't figure that out, because one of the docs says you can draw a CGBitmapContextRef with CGContextDrawImage, but that just crashes required a cast too).)

This isn't accurate information. Could you send me a pointer to the doc in questions so that we can correct it?

Actually, now that I read it again, I just misread what it said in the first paragraph of this page:


<http://developer.apple.com/documentation/Carbon/Conceptual/ QuickDrawToQuartz2D/index.html>

I thought it was saying that if you're running in 10.4, you *may* create an image from the bitmap context. It then says to use CGContextDrawImage to draw the image, which I thought still meant the original bitmap context. It doesn't mention how to create the image from the bitmap if you're *not* in 10.4. I think the docs would be more clear if it didn't use generic terms, e.g "image" when it really means a specific data type "CGImageRef".

_________________________________________________________
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: Derek Clegg <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.