• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CILinearGradient drawing backwards in 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CILinearGradient drawing backwards in 10.5
      • From: Michael Watson <email@hidden>
References: 
 >CILinearGradient drawing backwards in 10.5 (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: Is NSXMLParser really a streaming parser?
  • Next by Date: Re: When to use key-value coding to get values vs. accessors
  • Previous by thread: CILinearGradient drawing backwards in 10.5
  • Next by thread: Re: CILinearGradient drawing backwards in 10.5
  • Index(es):
    • Date
    • Thread