LEADTOOLS Support
Imaging
Imaging SDK Questions
How to Convert true colour image into Black and White C#.Net 2003, Lead Raster View 14.5
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 6, 2006 3:01:54 AM(UTC)
Groups: Registered
Posts: 9
Hi all,
I want to print images into black and white which are originally in true color
using Lead Raster View 14.5, C#.Net 2003 and Crystal Report 9.
My Images are in the MS SQL 2000 Database which are in true color. I want to convert
them into Black and White before I send them to Crystal Report for printing.
I tried these two methods to do this color conversion:
1) In Raster View control (14.5) I changed Hue, Saturation, Brightness and Contrast
using Raster View Process class. But it is not the right method to convert
into Black and White. It only gives appearance of Black and White. Size of the
Image remains same as color image.
2) We used ColorRes method of Lead Raster Process. It also did give result. In
this method it is possible to fix bits/pixel to 1 (as Black and White takes 1
bit/pixel).
Now how to convert these color images into Black and White using Lead Raster
controls 14.5. with C#.Net 2003?
Thanks in advance.
--
Regards,
Hemath Kulkarni
#2
Posted
:
Thursday, December 7, 2006 7:13:17 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Hello Hemath,
To convert your colored images into black and white images, use
the ColorRes method as follows:
RasterProc.ColorRes (LEADRasterView1.Raster, 1, CRP_OPTIMIZEDPALETTE,
CRD_FLOYDSTEINDITHERING, 0)
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to Convert true colour image into Black and White C#.Net 2003, Lead Raster View 14.5
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.