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: a couple of CGContext questions



On Jan 30, 2007, at 4:14 PM, Steve Christensen wrote:

Yes. For alpha, I'd like to be able to make changes relative to an arbitrary current context alpha setting, i.e., CGContextSetAlpha (theContext, CGContextGetAlpha(theContext) * 0.5) -- assuming a CGContextGetAlpha function existed.

If you do this, you'll get the alpha double counted. Whatever alpha you set for the context is automatically calculated into further drawing operations on the context, including those that include alpha drawing. So the effective alpha of any drawing operation is pixelAlpha * contextAlpha.
--
David Duncan
Apple DTS Quartz and Printing
email@hidden



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

This email sent to email@hidden
References: 
 >a couple of CGContext questions (From: Steve Christensen <email@hidden>)
 >Re: a couple of CGContext questions (From: Laurence Harris <email@hidden>)
 >Re: a couple of CGContext questions (From: Steve Christensen <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.