Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, December 29, 2010 1:34:28 AM(UTC)

Vitaly  
Vitaly

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, December 29, 2010 6:35:52 AM(UTC)
Maen Hasan

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)

Vitaly  
Vitaly

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.112 seconds.