[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

Re: Need help with Antialias/Smoothing

DotNetJunkies User

10/14/2004 7:26:00 AM

When I reduce the resolution of a picture (to 640x480) I do NOT want any smoothing that makes the picture blurred. What is the best setting for keeping the picture look crisp and sharp?

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/... Our newsgroup engine supports Post Alerts, Ratings, and Searching.
4 Answers

James Westgate

10/14/2004 9:37:00 AM

0

If you are redrawing an image using DrawImage, first set the
graphics.InterpolationMode property to determine how the image is drawn when
it is resized.

James

--
Create interactive diagrams and flowcharts with ERM Diagram at
http://www.cra...


"DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
news:%23lAc97bsEHA.1452@TK2MSFTNGP11.phx.gbl...
> When I reduce the resolution of a picture (to 640x480) I do NOT want any
> smoothing that makes the picture blurred. What is the best setting for
> keeping the picture look crisp and sharp?
>
> ---
> Posted using Wimdows.net NntpNews Component -
>
> Post Made from http://www.DotNetJunkies.com/... Our newsgroup
> engine supports Post Alerts, Ratings, and Searching.


N Thorell

10/14/2004 12:29:00 PM

0

Yes, but are there any other parameters that influence the ''sharpness''?
I guess ''SmoothingMode.None'' should be used to avoid smooting?
Still, I cannot reach the same quality as the customer''s reference picture.
I tried to save enlarged PowerPoint slides in PNG format and then resize
in C# by using DrawImage and Save in jpeg format.
I get the crispest shrinkning with the interpolation filter
''NearestNeighbor'', but then I loose some pixels, making thin lines ''dotted''.

"James Westgate" wrote:

> If you are redrawing an image using DrawImage, first set the
> graphics.InterpolationMode property to determine how the image is drawn when
> it is resized.
>
> James
>
> --
> Create interactive diagrams and flowcharts with ERM Diagram at
> http://www.cra...
>
>
> "DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
> news:%23lAc97bsEHA.1452@TK2MSFTNGP11.phx.gbl...
> > When I reduce the resolution of a picture (to 640x480) I do NOT want any
> > smoothing that makes the picture blurred. What is the best setting for
> > keeping the picture look crisp and sharp?
> >
> > ---
> > Posted using Wimdows.net NntpNews Component -
> >
> > Post Made from http://www.DotNetJunkies.com/... Our newsgroup
> > engine supports Post Alerts, Ratings, and Searching.
>
>
>

James Westgate

10/14/2004 12:54:00 PM

0

AFAIK interpolation mode is the only thing that affects the quality of
scaled images.
Try save in png or windows bitmap as the JPEG encoder may be affecting the
quaility.

My guess is that you are tring to match something done in a professional
package like Adobe and you may not get the same results with standard GDI+.

James

"N Thorell" <NThorell@discussions.microsoft.com> wrote in message
news:8E0EBEF4-F821-410E-B358-4D1FB5316CEA@microsoft.com...
> Yes, but are there any other parameters that influence the ''sharpness''?
> I guess ''SmoothingMode.None'' should be used to avoid smooting?
> Still, I cannot reach the same quality as the customer''s reference
> picture.
> I tried to save enlarged PowerPoint slides in PNG format and then resize
> in C# by using DrawImage and Save in jpeg format.
> I get the crispest shrinkning with the interpolation filter
> ''NearestNeighbor'', but then I loose some pixels, making thin lines
> ''dotted''.
>
> "James Westgate" wrote:
>
>> If you are redrawing an image using DrawImage, first set the
>> graphics.InterpolationMode property to determine how the image is drawn
>> when
>> it is resized.
>>
>> James
>>
>> --
>> Create interactive diagrams and flowcharts with ERM Diagram at
>> http://www.cra...
>>
>>
>> "DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
>> news:%23lAc97bsEHA.1452@TK2MSFTNGP11.phx.gbl...
>> > When I reduce the resolution of a picture (to 640x480) I do NOT want
>> > any
>> > smoothing that makes the picture blurred. What is the best setting for
>> > keeping the picture look crisp and sharp?
>> >
>> > ---
>> > Posted using Wimdows.net NntpNews Component -
>> >
>> > Post Made from http://www.DotNetJunkies.com/... Our newsgroup
>> > engine supports Post Alerts, Ratings, and Searching.
>>
>>
>>


N Thorell

10/14/2004 1:45:00 PM

0

I just found out that in C# I can ''Export'' individual slides in a PowerPoint
pesentation
directly into the correct format. (I know nothing about the quality, though)

Something like:
Presentation p = new ... Open("file.ppt", ...)

i = 4; // Pick a slide

p.Slides[i].Export("ExportedSlide.jpg", "JPG", 640, 480);

"James Westgate" wrote:

> AFAIK interpolation mode is the only thing that affects the quality of
> scaled images.
> Try save in png or windows bitmap as the JPEG encoder may be affecting the
> quaility.
>
> My guess is that you are tring to match something done in a professional
> package like Adobe and you may not get the same results with standard GDI+.
>
> James
>
> "N Thorell" <NThorell@discussions.microsoft.com> wrote in message
> news:8E0EBEF4-F821-410E-B358-4D1FB5316CEA@microsoft.com...
> > Yes, but are there any other parameters that influence the ''sharpness''?
> > I guess ''SmoothingMode.None'' should be used to avoid smooting?
> > Still, I cannot reach the same quality as the customer''s reference
> > picture.
> > I tried to save enlarged PowerPoint slides in PNG format and then resize
> > in C# by using DrawImage and Save in jpeg format.
> > I get the crispest shrinkning with the interpolation filter
> > ''NearestNeighbor'', but then I loose some pixels, making thin lines
> > ''dotted''.
> >
> > "James Westgate" wrote:
> >
> >> If you are redrawing an image using DrawImage, first set the
> >> graphics.InterpolationMode property to determine how the image is drawn
> >> when
> >> it is resized.
> >>
> >> James
> >>
> >> --
> >> Create interactive diagrams and flowcharts with ERM Diagram at
> >> http://www.cra...
> >>
> >>
> >> "DotNetJunkies User" <User@-NOSPAM-DotNetJunkies.com> wrote in message
> >> news:%23lAc97bsEHA.1452@TK2MSFTNGP11.phx.gbl...
> >> > When I reduce the resolution of a picture (to 640x480) I do NOT want
> >> > any
> >> > smoothing that makes the picture blurred. What is the best setting for
> >> > keeping the picture look crisp and sharp?
> >> >
> >> > ---
> >> > Posted using Wimdows.net NntpNews Component -
> >> >
> >> > Post Made from http://www.DotNetJunkies.com/... Our newsgroup
> >> > engine supports Post Alerts, Ratings, and Searching.
> >>
> >>
> >>
>
>
>