• 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
Interleaved (interwoven) raw images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Interleaved (interwoven) raw images
      • From: Raphael Sebbe <email@hidden>
  • Prev by Date: sending email from a cocoa app
  • Next by Date: Re: Online C++ resources?
  • Previous by thread: Re: sending email from a cocoa app
  • Next by thread: Re: Interleaved (interwoven) raw images
  • Index(es):
    • Date
    • Thread