• 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: Acceptable bit-depths for NSImageBitmapRep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Acceptable bit-depths for NSImageBitmapRep


  • Subject: Re: Acceptable bit-depths for NSImageBitmapRep
  • From: Cameron Hayne <email@hidden>
  • Date: Fri, 9 Aug 2002 14:13:21 -0400

On Friday, August 9, 2002, at 01:42 pm, Clark S. Cox III wrote:
theRep = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes: (unsigned
char**)&data
pixelsWide: w
pixelsHigh: h
bitsPerSample: 12
samplesPerPixel: 1
hasAlpha: NO
isPlanar: NO
colorSpaceName: NSCalibratedWhiteColorSpace
bytesPerRow: 0
bitsPerPixel: 16];

Don't you have to specify the correct (non-zero) value for bytesPerRow since bitsPerPixel != bitsPerSample ?
The docs don't say anything about it using bitsPerPixel to calculate bytesPerRow for you - yes, it seem to me it should do this but it doesn't say that.
--
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: 
 >Acceptable bit-depths for NSImageBitmapRep (From: "Clark S. Cox III" <email@hidden>)

  • Prev by Date: New Yahoo!Group for Users of AppleGlot
  • Next by Date: Re: FTPClient Beta Released - Please test
  • Previous by thread: Acceptable bit-depths for NSImageBitmapRep
  • Next by thread: New Yahoo!Group for Users of AppleGlot
  • Index(es):
    • Date
    • Thread