Welcome to LEAD Support Forum Login | Register | Faq  

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

Help converting to grayscale
Started by heegar at 02-06-2008 16:19. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  02-06-2008, 16:19
heegar is not online. Last active: 7/3/2008 1:13:01 PM heegar

Top 500 Posts
Joined on 01-04-2008
Posts 12
Help converting to grayscale
Reply Quote
I have a scanned image that I need to keep with color. But one of my Methods requires the image to be in grayscale or black and white. Is there an easy way to convert it in a new RasterImage object?
   Report 
  02-07-2008, 2:59
Qasem Lubani is not online. Last active: 9/28/2008 12:30:21 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,090
Re: Help converting to grayscale
Reply Quote
What version of LEADTOOLS are you using?
Also, what programming language and LEADTOOLS programming interface (API DLL, COM objects, native .NET objects, etc..) are you using?

Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  02-07-2008, 15:51
heegar is not online. Last active: 7/3/2008 1:13:01 PM heegar

Top 500 Posts
Joined on 01-04-2008
Posts 12
Re: Help converting to grayscale
Reply Quote
I'm programming in C# .net VS2005

I'm using LeadTools 15

I have access to RasterCodecs class, but I just can't find anything to do what I'm trying to do.

   Report 
  02-10-2008, 8:11
Qasem Lubani is not online. Last active: 9/28/2008 12:30:21 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,090
Re: Help converting to grayscale
Reply Quote

You can keep the original image unchanged if you want, and create a new instance of the RasterImage object then convert it to grayscale like this:

Leadtools.RasterImage newImage = oldImage.Clone();

// now use the GrayscaleCommand Class to convert newImage to grayscale.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » LEAD/Axtel Barc... » Barcode » Help converting to grayscale

Powered by Community Server, by Telligent Systems