• 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: colorspace for grayscale images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: colorspace for grayscale images


  • Subject: Re: colorspace for grayscale images
  • From: Cameron Hayne <email@hidden>
  • Date: Tue, 02 Sep 2003 16:07:14 -0400

On 1/9/03 11:18 AM, "Damien Pacaud" <email@hidden> wrote:

> I have a grayscale image in memory as pixel data...
> every pixel is stored on 8 bits.
> I created an NSBitmapImageRep to display the image...and inited it with
> initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerP
> ixel:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:
> my problem is : what colorspace should I use ?
> I tried all of them but none seem to be able to display my image

I used NSDeviceWhiteColorSpace in my test program "ImageCalc"
(http://hayne.net/MacDev/ImageCalc/)

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >colorspace for grayscale images (From: Damien Pacaud <email@hidden>)

  • Prev by Date: Re: Painting into a NSImage / Combining two NSImage objects
  • Next by Date: Re: Newbie question: forcing data format during saveDocumentTo:
  • Previous by thread: colorspace for grayscale images
  • Next by thread: Re: Enable the Copy Menu
  • Index(es):
    • Date
    • Thread