• 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: 1-bit NSBitmapImageRep?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1-bit NSBitmapImageRep?


  • Subject: Re: 1-bit NSBitmapImageRep?
  • From: Michael Vannorsdel <email@hidden>
  • Date: Thu, 17 Apr 2008 00:30:03 -0600

I'm pretty sure you can do this, the only problem is the bytesPerRow value. Since you need 8 bits to a byte your row size needs to be a multiple of 8 (to make an even number of bytes). If this is undoable, 8bits per sample would be the next smallest and will definitely work.


On Apr 16, 2008, at 7:57 PM, Graham Cox wrote:

Is it possible to create a 1-bit (black and white) NSBitMapImageRep? If so, what are the magic parameters? If not, what is the smallest number of bits per pixel supported?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >1-bit NSBitmapImageRep? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: how to wait the finish of NSURLDownload
  • Next by Date: Re: NSArrayController bound to @unionOfArrays not updating
  • Previous by thread: 1-bit NSBitmapImageRep?
  • Next by thread: Re: 1-bit NSBitmapImageRep?
  • Index(es):
    • Date
    • Thread