This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, December 8, 2006 8:54:04 AM(UTC)
Groups: Registered
Posts: 15
I am loading tif image which is a fax message using rasterimageviewers. The resolution of the image is not good compare to microsoft document imaging tool. The resolution of the image I am getting is same as in the example program. What do I need to do to get the better image quality?
#2
Posted
:
Tuesday, December 12, 2006 8:32:57 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Improving the appearance depends on the toolkit you own (Document Imaging vs. Raster Pro), and the type of image.
If the image is bitonal (1-bit black and white), which is the case for FAX images, you can improve its zoomed appearance by using the Scale to Gray display mode. However, this display mode only works with Document/Medical Imaging toolkits.
If the image pixel depth is more than 1-bit, you can improve the display by setting the paint scaling mode to Resample or Bicubic interpolation. This works with all toolkits.
If the image is 1-bit but you only have Raster Pro, you can work around the limitation by converting the displayed copy to 8-bit grayscale and using the Resample mode.
The drawback of this workaround is that it requires more memory to store the image, and time to perform the conversion from 1-bit to 8-bit.
To set the display mode, use code like this:
Dim pp as Leadtools.RasterPaintProperties = RasterImageViewer1.PaintProperties
pp.PaintDisplayMode = NeededValue
RasterImageViewer1.PaintProperties = pp
where NeededValue is one of the RasterPaintDisplayModeFlags enum values, such as ScaleToGray, Bicubic, None, or Resample.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
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.