• 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: How to convert an image?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert an image?


  • Subject: Re: How to convert an image?
  • From: Nat! <email@hidden>
  • Date: Sun, 16 Sep 2001 23:21:51 +0200

Am Sonntag den, 16. September 2001, um 15:30, schrieb John C. Randolph:

On Sunday, September 16, 2001, at 04:32 AM, email@hidden wrote:

How to convert a 24 bit image into a 1 bit image with NSBitmapImageRep?

I've never tried this, but offhand I'd try creating a one-bit deep imagerep, lockfocus on it, and tell the 24-bit image to composite itself.


Except that lockFocus isn't implemented in NSBitmapImageRep...

The correct answer is (AFAIK, see my thread about "canonical image reps" some weeks ago), that you have to do it by hand!

Nat!
P.S. Windows95 can do stuff like that for you :)


References: 
 >Re: How to convert an image? (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: A first stab at a schema (Was: Would Any Developers Use This? )
  • Next by Date: Re: A first stab at a schema (possible names)
  • Previous by thread: Re: How to convert an image?
  • Next by thread: Changing draggedImage in mid-drag
  • Index(es):
    • Date
    • Thread