Grayscaling a bitonal image
Grayscaling a bitonal image
Hi,
I have a set of bitonal images (TIFF). I would like to send them to the browser. For that, I can convert them into GIF (or PNG). I am using ASP.NET / C#.
This works properly with GDI+ (No need for your ActiveX control)
Now, what I would like to achieve is grayscaling those images on-the-fly so the look better in the browser. I know this is possible (a lot of software do it, for example Windows Picture & Fax Viewer)
Do you think this would be possible using GdPicture ?
I tried the SetGrayScale method but obviously this one is to grayscale colored images only ...
Any idea ?
Thanks
Guillaume
I have a set of bitonal images (TIFF). I would like to send them to the browser. For that, I can convert them into GIF (or PNG). I am using ASP.NET / C#.
This works properly with GDI+ (No need for your ActiveX control)
Now, what I would like to achieve is grayscaling those images on-the-fly so the look better in the browser. I know this is possible (a lot of software do it, for example Windows Picture & Fax Viewer)
Do you think this would be possible using GdPicture ?
I tried the SetGrayScale method but obviously this one is to grayscale colored images only ...
Any idea ?
Thanks
Guillaume
Hi Guillaume,
You have many ways to do that with gdpicture.
I give you a simple one:
Is this good for your need ?
Regards,
Loïc
You have many ways to do that with gdpicture.
I give you a simple one:
Code: Select all
Call Imaging1.ConvertTo24BppRGB
Call Imaging1.Imaging1.SetSoftenEffect(100)
Is this good for your need ?
Regards,
Loïc
Thanks Loic
I'll test that and let you know how it goes ...
Cheers
Guillaume
Cheers
Guillaume
Who is online
Users browsing this forum: No registered users and 1 guest