• 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
Re: 8 to 24-bit tiff images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8 to 24-bit tiff images


  • Subject: Re: 8 to 24-bit tiff images
  • From: John Timmer <email@hidden>
  • Date: Tue, 01 Feb 2005 19:37:03 -0500

I can't tell you how, but I can tell you what I'd try first.  Load each of
these into a data buffer, and then send that to NSBitmapImageRep's
initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel
:hasAlpha:isPlanar:colorSpaceName:bytesPerRow:bitsPerPixel:

The docs say the following about the first argument:
"The planes argument is an array of character pointers, each of which points
to a buffer containing raw image data. If the data is in planar
configuration, each buffer holds one component‹one plane‹of the data. Color
planes are arranged in the standard order‹for example, red before green
before blue for RGB color. All color planes precede the coverage plane. If a
coverage plane exists, the bitmap¹s color components must be premultiplied
with it."
Which sounds appropriate for your needs.

The only question might be whether the byte structure of the raw file data
is appropriate - you may have to load each into a single B&W
NSBitmapImageRep and then use the bimapData method to get at the bytes in
the right format.

Hope that helps,

John


> How does one combine 3 8-bit tiff images representing the red, green,
> and blue components and combine them into one 24-bit tiff image?
>
> Thanks,
> David
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________
This mind intentionally left blank


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >8 to 24-bit tiff images (From: "David Piasecki" <email@hidden>)

  • Prev by Date: Re: + initialize docs conflict?
  • Next by Date: Re: + initialize docs conflict?
  • Previous by thread: 8 to 24-bit tiff images
  • Next by thread: Installer for a plug-in
  • Index(es):
    • Date
    • Thread