• 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
How can I convert bitmap representations to a "canonical" form
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I convert bitmap representations to a "canonical" form


  • Subject: How can I convert bitmap representations to a "canonical" form
  • From: Nat! <email@hidden>
  • Date: Tue, 21 Aug 2001 23:35:50 +0200

(I asked this on the Omnigroup list already - got no answer, so I try again here)

I want to write a simple "painter" style application, that should only deal with a certain kind of pixel format, independent of the actual screen resolution. When I read an image from disk, I want to convert that data into my "canonical" pixel format.

I looked high and low thru the AppKit documentation, but so far I haven't figure out how to have a NSBitmapImageRep (initialized from a file) and convert its data using AppKit into another NSBitmapImageRep of custom bitmap parameters (depth, samplesPerPixel, etc).

You may very well tell me that I am lazy and should do the pixel conversion myself. But thinking about how AppKit has to also convert all these representation to its device format (when creating a NSCachedImageRep f.e.), it seems that the functionality must be already there. I just don't-know-how-to/can't access it.

Nat!


  • Follow-Ups:
    • Re: How can I convert bitmap representations to a "canonical" form
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: RE: saving tables and user defined strings
  • Next by Date: java process vs. NSTask
  • Previous by thread: Re: Cocoa newbie question: when to retain and when to copy args passed to method...?
  • Next by thread: Re: How can I convert bitmap representations to a "canonical" form
  • Index(es):
    • Date
    • Thread