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

NSImage -> 1-bit NSBitmapImageRep


  • Subject: NSImage -> 1-bit NSBitmapImageRep
  • From: Sanford Selznick <email@hidden>
  • Date: Tue, 8 Feb 2005 22:29:21 -0700

I've got an NSImage with black and white data in it. I'd like to copy the black and white contents to a 1-bit-per-pixel NSBitmapImageRep.

What's the best way to do this?

I need 1-bit-per-pixel data, rowbytes and a rect so I can pass them into a library.

I've searched the archives and only found solutions for NSBitmapImageRep -> NSImage, but I need the other direction.

I've done this with GWorlds and QuickDraw, but I need a Cocoa solution.

Thank you,
  Sanford
_______________________________________________
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: NSImage -> 1-bit NSBitmapImageRep
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: How to delete table rows to delete by dragging them to trash in the dock
  • Next by Date: Export data to excel
  • Previous by thread: Re: IB subviews?
  • Next by thread: Re: NSImage -> 1-bit NSBitmapImageRep
  • Index(es):
    • Date
    • Thread