Solved

How to apply filters to image displays....

Posted on 2004-09-27
6
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

740 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