Re: CILinearGradient drawing backwards in 10.5
Re: CILinearGradient drawing backwards in 10.5
- Subject: Re: CILinearGradient drawing backwards in 10.5
- From: Wade Tregaskis <email@hidden>
- Date: Thu, 1 Nov 2007 13:56:47 -0700
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:
This email sent to email@hidden