Re: How can I convert bitmap representations to a "canonical" form
Re: How can I convert bitmap representations to a "canonical" form
- Subject: Re: How can I convert bitmap representations to a "canonical" form
- From: "Erik M. Buck" <email@hidden>
- Date: Tue, 21 Aug 2001 18:09:48 -0500
Read a bitmap into an NSImage
Create an image rep with the pixel format desired
lock focus on the image rep
composite the NSImage into the rep (pixel conversions should happen
automatically)
unlock focus
However, if you are serious about image manipulation, you should learn how
to copy pixels, convert formats, play with memory buffers, etc. This is
usually very low level C code or even assembly.
Have you considered a book on the subject ?
Have you considered using an array of bytes and pointer arithmetic ?