• 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 to handle planar raw images ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to handle planar raw images ?


  • Subject: How to handle planar raw images ?
  • From: Bertrand Mansion <email@hidden>
  • Date: Sat, 18 Aug 2001 14:11:43 +0200

Hello,

I have asked this before but did not formulate my question right because I
was confused about the problem. I am trying to import data from a raw image
file into an NSBitmapImageRep object.

When the image is non-planar (RGB,RGB,RGB...) it works just fine.
When the image is planar (RRRR...,GGGG...,BBBB...), it does not work.
Instead, I see nine small pictures in my NSView.

I get all the data from the raw image file using NSData's
initWithContentsOfFile method.

What I would like to know, is what I am supposed to do with it after, in
order to pass it to NSBitmapImageRep's initWithBitmapDataPlanes: ?

What argument am I supposed to pass for planes when I have a planar raw
image file, RGB, no alpha, 24bits ?

How do I structure my variable or my pointer to make it a valid argument ?

How do I process the NSData bytes in order to put them into a buffer ? (This
is especially not clear as I don't know yet the relations between C
variables and Objective-C objects).

If someone could help me it would really be great as I have been struggling
with that two days now. It looks like everybody uses non-planar images and I
am stuck with bloody planar images !!! Thanks

Bertrand Mansion
Mamasam


  • Follow-Ups:
    • Re: How to handle planar raw images ?
      • From: "Dennis C. De Mars" <email@hidden>
  • Prev by Date: Re: Downloading html page
  • Next by Date: Re: Fax capabilities?
  • Previous by thread: FSRef-like primitive?
  • Next by thread: Re: How to handle planar raw images ?
  • Index(es):
    • Date
    • Thread