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: CILinearGradient drawing backwards in 10.5



As of Leopard, when I attempt to draw a linear gradient (CILinearGradient) via any kind of context--an NSImage, an NSView drawing itself (flipped or not), etc--the gradient start and end colours are backwards. That is, if I start the gradient at black and end it at white, it will appear on-screen as though I started at white and ended at black. In Tiger, I did not have this problem.

http://developer.apple.com/releasenotes/GraphicsImaging/RN-CoreImage/index.html

Core Image Filters Behavior Changes

Two Core Image filters—CILinearGradient and CILineScreen—behave differently on Mac OS X v10.5 as compared to Mac OS X v10.4. These changes are implemented in a backwards compatible way. For applications compiled on Mac OS X v10.4, these filters continue to behave on Mac OS X v10.5 as they did previously. However, for applications compiled on Mac OS X v10.5 or later, these filters adopt the new behavior:

CILinearGradient. On Mac OS X v10.4, the gradient incorrectly renders inputColor0 at inputPoint1 and inputColor1 at inputPoint0. On Mac OS X v10.5, the gradient renders inputColor0 at inputPoint0.
CILineScreen. The inputSharpness parameter on Mac OS X v10.4 reaches maximal sharpness at 0.0, which is inconsistent with all other halftone filters (CICircularScreen, CIDotScreen, CIHatchedScreen). On Mac OS X v10.5, all halftone filters reach maximal sharpness at 1.0._______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >CILinearGradient drawing backwards in 10.5 (From: Michael Watson <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.