How can I convert bitmap representations to a "canonical" form
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!