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 : Tuesday, June 27, 2006 1:02:43 PM(UTC)

MrWayne  
MrWayne

Groups: Registered
Posts: 14


We have recently modified our code to include anti-aliasing of image files through use of

SetDisplayMode( DISPLAYMODE_SCALETOGRAY, DISPLAYMODE_SCALETOGRAY );

This works for TIF images. 

We also unlocked support for reading and writing PDF files and this works.  For our PDF images, however, the anti-aliasing is not working.  The code that reads the PDF image modifies the resolution from 72x72 to 300x300.

I have attached a (zipped) sample PDF document.  I would appreciate any suggestions you might have to get the anti-aliasing working.

Thanks.

File Attachment(s):
pdf0000029.zip (227kb) downloaded 32 time(s).
 

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, June 28, 2006 4:20:38 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

This is a 24-bit file.  The DISPLAYMODE_SCALETOGRAY
mode works for 1-bit images only.  Load the file as a 1-bit file and with a high DPI (e.g. 300) and it should work.

 
#3 Posted : Wednesday, June 28, 2006 4:43:25 AM(UTC)

MrWayne  
MrWayne

Groups: Registered
Posts: 14


Thank you.  Adding nDisplayDepth = 1 to the FILEPDFOPTIONS settings fixes the problem.
 
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.100 seconds.