Mailing Lists: Apple Mailing Lists

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

How to get 24 bit RGB data ?



hi, everyone!
    I have met a problem when I get 24 bit RGB data. In the hp SamplePM, I set the kPMRequestedPixelFormatKey as kPMRGB_24, the kPMRequiredBandHeightKey as 48*5, the kPMConverterResHorizontalKey as 600, the kPMConverterResVerticalKey as 600  in converterSetupTicket. I printed document in A4 paper.
    When debugging, I get the print data from the method of TEnginePCL::PrintBand(). In the bandBuffer data, the first line data is 24 bit RGB and it is correct. But from the second line to the last line, the data is 32 bit (kPMXRGB_32 pixel format) RGB data.
    Why the second line data is 32 bit RGB data ??
    And does the second line data begin from "bandBuffer + bandWidth * 4" ? ( bandWidth = (pageWidth * 600) / 72)
Thanks a lot!


雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
雅虎助手-搜索、杀毒、防骚扰
 _______________________________________________
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



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.