Re: 8 to 24-bit tiff images
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 componentone planeof the data. Color
planes are arranged in the standard orderfor 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