Interleaved (interwoven) raw images
Interleaved (interwoven) raw images
- Subject: Interleaved (interwoven) raw images
- From: Bertrand Mansion <email@hidden>
- Date: Thu, 16 Aug 2001 19:15:24 +0200
Hi,
I am trying to display an image from a file. This image is in raw format,
RGB, 3 channels, no Alpha. I managed to display it using NSBitmapImageRep
initWithPlanes but the result is strange : it comes as 9 grey images instead
of just one. I have identified that this is because the raw data are
interleaved (or interwoven). I know I need to set isPlanar to YES and
WithPlanes to an array.
As I am new to C, I have no idea on how to put these data into 3 different
planes. I suppose I need to create an array and parse the content of my
NSData into 3 different pointers in this array. But how do we do it ?
If someone could only give me an example, it would be great as I am the kind
of people who learn better with examples... ;-)
Thank you
Bertrand Mansion
Mamasam