Solved

How to apply filters to image displays....

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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