• 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: changing brightness and contrast in an nsimage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing brightness and contrast in an nsimage


  • Subject: Re: changing brightness and contrast in an nsimage
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 2 Dec 2005 21:34:40 -0800


On Dec 2, 2005, at 9:29 PM, Eric Smith wrote:

I've been going around in circles with this one...

What is a good way to change the brightness and contrast in an NSImage?

I've been playing with the vImage library for changing contrast, using the vImageEndsInContrastStretch. This works, but how does one return the contrast to it's original value? Once you specify that > 0% of the pixels lie at the histogram extreme, you can't get the original values back. I know of the ImagApp example showing how to use CIImage, but using that would require a re-write of quite a bit of code... I'd rather not go there.

Too bad, because that's how to do it.

-jcr



John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
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: changing brightness and contrast in an nsimage
      • From: Eric Smith <email@hidden>
References: 
 >changing brightness and contrast in an nsimage (From: Eric Smith <email@hidden>)

  • Prev by Date: changing brightness and contrast in an nsimage
  • Next by Date: NSBitmapImageRep compressed TIFF & large files
  • Previous by thread: changing brightness and contrast in an nsimage
  • Next by thread: Re: changing brightness and contrast in an nsimage
  • Index(es):
    • Date
    • Thread