Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get 24 bit RGB data



Re:

On Oct 14, 2005, at 11:41 AM, email@hidden wrote:


These comments refer to Tioga drivers, which is what you appear to be making:

1. Because I had a lot of problems in the earlier OS versions
with various formats, I stick with kPMXRBGB_32 and just
throw away the bytes I don't need.

2. The PMJobStreamGetNextBand routine returns with a structure
describing the band. The structure doesn't have a width, but
  widthInBytes = band.size / band.height
and
  widthInPixels = widthInBytes * 8 / band.depth,

so the second line begins widthInBytes past the first line.

This strategy for computing the width of a scanline from the band.size field
will definitely fail for the kPMRGB_24 case for the reasons I mentioned
in my earlier message. It may work well for some formats but definitely
not for that one at this point in time.


David


_______________________________________________ Do not post admin requests to the list. They will be ignored. Printing mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden
References: 
 >re: How to get 24 bit RGB data (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.