Solved

How to apply filters to image displays....

Posted on 2004-09-27
6
264 Views
Last Modified: 2012-05-05
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.
0
Comment
Question by:codefinger
  • 3
6 Comments
 
LVL 18

Expert Comment

by:armoghan
ID: 12160494
have you seen this article.its not in C++ it in C#
http://www.codeproject.com/cs/media/csharpfilters.asp
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12160530
you can use the above mentioned DLL in VB.NET as well
0
 

Author Comment

by:codefinger
ID: 12184807
In this case, I think my own answer to my own question was a lot more on target, and armoghan's answer didn't save me any time (he mostly referred me to the same article that was over my head in the first place), so I am going to ask for a refund of points on this question.   However, watch for another question with the same points in this same forum.

My solution is a link to here:

http://www.realworldasp.net/article.asp?article=123

0
 
LVL 18

Expert Comment

by:armoghan
ID: 12186767
NP codefinger
The important thing is that you found a solution to your problem..

Actually the article I mentioned above has become a defecto for image filtering :)
as it has everything, smoothing/sharpening etc.

Anyways glad to help
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12220240
Question answered by asker or dialog valuable.
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now