• 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
NSBitmapImageRep getPixel and color Spaces
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBitmapImageRep getPixel and color Spaces


  • Subject: NSBitmapImageRep getPixel and color Spaces
  • From: Daniel Vollmer <email@hidden>
  • Date: Thu, 2 Mar 2006 01:06:35 +0100

Hi all,

I am using an NSBitmapImageRep's getPixel:atX:y: method to access the pixel data of an image, but when I create an NSImage (and a corresponding NSBitmapImageRep) from the raw data and display it, the gamma-curve (for a grayscale image) looks slightly different then when I am displaying the image in Preview.app.
Is the data returned by getPixel color-corrected? Or maybe there is a difference between [NSBitmapImageReg initWithData:] and what Preview.app uses (probably NSImage)?


For reference, the file I am using for testing is a grayscale PNG image with 8bpp and the info panel displays the color-space as "Calibrated Gray Colorspace", the created NSBitmapImageRep which I fill with data and display is using NSCalibratedWhiteColorSpace.

Any ideas?

Thanks,
	Daniel Vollmer.
_______________________________________________
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: NSBitmapImageRep getPixel and color Spaces
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Sorting using NSOutlineView, NSTreeController and NSArray / NSMutableArray
  • Next by Date: Re: interface builder's communication problem
  • Previous by thread: Reading raw jpeg data
  • Next by thread: Re: NSBitmapImageRep getPixel and color Spaces
  • Index(es):
    • Date
    • Thread