How to apply filters to image displays....
Posted on 2004-09-27
I asked a question in a newsgroup about how Windows Picture and Fax Viewer provided a much better picture of my 1 bit per pixel tiff file than the web control does when the same image is displayed on a dotnet web page.
The answer was:
"If you are using GDI+, before you attempt to draw
the image, you need to apply a filter to it to give the "smoothing" effect
you see in the Windows Pictuce and Fax viewer. codeproject.com has some
examples of smoothing filters in GDI+. I have found that the 1bpp image
needs to be converted to 32bppPArgb before you can apply the filter and have
it do what you are expecting. "
codeproject.com does have an extensive article on graphics, but as far as I can tell its all based on C++/Net. I've only learned to program .Net using VB.Net, and wading through all the graphics concepts for this one solution is going to be hard enough without the additional headache of translating the C++ code into VB.NET.
Can someone save me some time, preferably with an actual code sample?
Thanks in advance for any responses.