• 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
CILinearGradient not linear?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CILinearGradient not linear?


  • Subject: CILinearGradient not linear?
  • From: George Orthwein <email@hidden>
  • Date: Mon, 29 May 2006 14:13:15 -0400

Ok, hopefully this is just me and I'm overlooking some Core Image setting. :)

Create a linear gradient in Core Image Fun House:
/Developer/Examples/Quartz/Core Image/FunHouse

and compare it to CTGradient which uses Core Graphics (set the test app to the default style):
http://blog.oofn.net/projects/misc


Compare with a Photoshop gradient if you like.

The CTGradient looks almost identical to the Photoshop gradient but the Core Image gradient differs quite a bit... showing more lighter tones and then dropping to black very quickly at the end. The midpoint is 32% black instead of 50%.

Could this possibly be my machine/video card (ati 9600xt)? A monitor color profile affecting core image?

Actually, I just noticed the example pic in the Core Image documentation also exhibits the sharp drop to black:
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/ CoreImaging/ci_filters/chapter_5_section_10.html


And, I created a CIContext that used the CPU rather than GPU and got identical results:
http://developer.apple.com/qa/qa2005/qa1416.html


Hmmmm.

George
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CILinearGradient not linear?
      • From: Christian Walther <email@hidden>
  • Prev by Date: Re: NSAttributedString drawing and NSText drawing
  • Next by Date: Re: Installer Check to see if it's an Intel Mac
  • Previous by thread: NSDocument - preventing incomplete document from being saved
  • Next by thread: Re: CILinearGradient not linear?
  • Index(es):
    • Date
    • Thread