Solved

How to apply filters to image displays....

Posted on 2004-09-27
6
265 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 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

23 Experts available now in Live!

Get 1:1 Help Now