Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Poor quality tif-files ActiveX 32
Started by johanf at 05-23-2008 4:01. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  05-23-2008, 4:01
johanf is not online. Last active: 5/23/2008 8:40:01 AM johanf

Not Ranked
Joined on 05-23-2008
Posts 2
Poor quality tif-files ActiveX 32
Reply Quote
Hi,

We are using version 11.5 of Leadtools ActiveX 32 to show images. When we load a tif-file using following Progress-syntax (Progress is a programming language you prabaly don't know much about, but I hope you understand what we are doing, using LOAD, SIZE and COPY-methods):

LEAD:LOAD(filnamn,0,0,1).

Lead:SIZE(ratio * Lead:Bitmapwidth,
ratio * Lead:Bitmapheight,2).

LEAD:COPY(11).

Since I'm not that familiar with with Leadtools I wonder if some of the parameters in the load and/or COPY-methods could be changed to improve the tif-quality (bmp works fine).
Other tricks we could do?

Also, if we open the tif-file in other windows programs the quality is much better.

Thanks in advance

/Johan Forssblad, Sweden
   Report 
  05-25-2008, 13:17
Adam Boulad is not online. Last active: 11/20/2008 3:23:08 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 513
Re: Poor quality tif-files ActiveX 32
Reply Quote

Johan,

1. Are your TIFF images 1-bit (black and white)?

2. Do you also use our control to display the image and get the low quality result, or do you paste it in some other non-LEAD program? In other words, is the problem related to our display or to our resizing of the images?
Adam Boulad
LEADTOOLS Technical Support

   Report 
  05-26-2008, 2:10
johanf is not online. Last active: 5/23/2008 8:40:01 AM johanf

Not Ranked
Joined on 05-23-2008
Posts 2
Re: Poor quality tif-files ActiveX 32
Reply Quote
1. Yes, they are black and white
2. We use your control to display, when I open the same image in for eaxmple MS Paint the result is much better. I attach one image we have problem with.

/Johan Forssblad
   Report 
  05-26-2008, 6:00
Adam Boulad is not online. Last active: 11/20/2008 3:23:08 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 513
Re: Poor quality tif-files ActiveX 32
Reply Quote

To enhance the display of the image, you can either:

1) If you own a Document Express toolkit, use the unlock method to unlock the Document Express (later renamed Document Imaging) features, and use the SCALETOGRAY flag in the BitonalScaling property.
 
OR

2) Convert the 1-bit image to a 4-bit image, using ColorRes, or 8-bit ,using Grayscale, which will give you bigger image size. And then use the PaintScaling property to set it to PAINTSCALING_RESAMPLE.

The drawback of this workaround is that it requires more memory to store the image, and time to perform the conversion.
 

Since you are resizing the actual pixels of the image, and not zooming, this will not enhance the resized image. You can enhance the resized image by converting the 1-bit image to 8-bit (or 4-bit) image and then resizing it.

 

Note:

Our forums do not allow all types of attachments, but you can attach anything if you put it in a ZIP or RAR file. Also, do not use the Preview feature when attaching.


Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Image Display » Poor quality tif-files ActiveX 32

Powered by Community Server, by Telligent Systems