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 : Monday, June 26, 2006 12:15:49 PM(UTC)
Newspaperarchive.com

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?

 

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 : Tuesday, June 27, 2006 5:03:47 AM(UTC)
Maen Hasan

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.

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