Solved

How to apply filters to image displays....

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net Duplicating a table - primary key not created 3 41
VB.net -  GroupBox / Panel DataBinding and behavior 3 33
Get sourcecode path 14 58
FTP recursive download files 5 23
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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

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