This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 29, 2010 1:34:28 AM(UTC)
Groups: Registered
Posts: 2
Hello,
Loading 6-btis PDF image into LBitmap sets the result bitmap palette's colors to the colors that are far from the colors of an original image. Therefore the result image generated from this bitmap by our application is much different from an original image. Though before loading the “SetPDFOptions”
function has been called with nDisplayDepth field of FILEPDFOPTIONS structure set to 8 that is greater than 6. Could you please provide with a correct way to load 6-bit PDF image (2 bits per color component) into 8-bits bitmap so that the palette’s colors should be closer to the original image’s colors? We use LeadTools 17.
Thanks,
Vitaly
#2
Posted
:
Wednesday, December 29, 2010 6:35:52 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Vitaly,
If you load the image as full 24-bit color, does it look close to the correct colors?
If yes, try to load it as 24-bit then perform color resolution to 8-bit using the LBitmapBase::ColorRes with the optimized palette CRF_OPTIMIZEDPALETTE flag.
If this doesn't solve it, can you send me a sample PDF file that shows the the problem in a ZIP or RAR file? You can post it here or send it to
support@leadtools.com and mention this forum post.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Wednesday, December 29, 2010 7:30:17 PM(UTC)
Groups: Registered
Posts: 2
Thank you, your solution works fine.
Vitaly
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.