This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, June 26, 2006 12:15:49 PM(UTC)
Groups: Registered
Posts: 3
I recieved this email today
Our viewer can improve the display of 1-bit black and white images if you enable the Scale To Gray feature. This feature is part of LEADTOOLS Document Imaging toolkits.
If you only own LEADTOOLS Raster Imaging Pro, you can work around the problem by converting the image in memory to 8-bit grayscale and using the Resample paint scaling mode.
I am using Leadtools .NET Class Library. How exactly do I do this?
In the help it says i should use
public enum RasterPaintDisplayModeFlags with ScaleToGray
but how do I put this all together and where should it go?
#2
Posted
:
Tuesday, June 27, 2006 5:03:47 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
You can use the RasterPaintDisplayModeFlags with ScaleToGra in LEADTOOLS .Net SDK as follows:
+--------------------------+
Dim loPaintProperties As RasterPaintProperties
loPaintProperties = RasterPaintProperties.Default
loPaintProperties.PaintDisplayMode = RasterPaintDisplayModeFlags.ScaleToGray Or RasterPaintDisplayModeFlags.Bicubic
RasterImageViewer1.SizeMode = RasterViewerSizeMode.FitIfLarger
LeadImage = codecs.Load(FileName, 0, CodecsLoadByteOrder.BgrOrGray, 1, -1)
RasterImageViewer1.Image = LeadImage
+--------------------------+
Thanks,
Maen Badwan
LEADTOOLS Technical Support
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.