[lnkForumImage]
TotalShareware - Download Free Software

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


 

Bob Powell

12/28/2004 10:08:00 PM

GDI+ provides the interpolation mode which is what is responsible for
providing the smoothing of images by bilinear or bicubic interpolation. If
you want to do this in GDI you have to do all of the image processing
yourself. There are no API functions that do it.


--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tips...

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/f...

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Jorge Carlos Paredes Jimenez" <jparedes@winstondata.com> wrote in message
news:OlctoZQ7EHA.2876@TK2MSFTNGP12.phx.gbl...
> Hi everybody
>
> I'm working with TIFF B&W images in C#, for best performance
> I'm using GDI instead of GDI+.
> I'm using BitBlt and StretchBlt.
>
> The problem is that when I "paint" the image with StretchBlt or BitBlt
> the image is not "Smooth", when I "paint" the image with DrawImage
> the Image is "Smooth".
>
> Here I'm sending an example.
> The image in top was "painted" with StretchBlt, the image on bottom
> is viewed with Image and Fax Viewer of WXP that has the same result
> that "paint" the image with Graphics.DrawImage.
>
> Somebody knows how to do the same effect with GDI or GDI+ without
> using DrawImage?
> The idea is process or apply some filter to the bitmap in memory and then
> draw with StretchBlt
>
> Thanks in advance!!
>
> Jorge Paredes
>
>
>
>
>
>
>


1 Answer

Jorge Paredes

12/28/2004 10:33:00 PM

0

Thanks, Bob!

I'll try to do the image processing by myself, I don't want to use GDI+
I had many performance problems when I start to use GDI+.
By the way, excelent web site!, I used much information that you put in
there
in my learning of C# and GDI+.

Jorge Paredes


"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> escribió en el mensaje
news:uD0pcnS7EHA.3076@TK2MSFTNGP15.phx.gbl...
> GDI+ provides the interpolation mode which is what is responsible for
> providing the smoothing of images by bilinear or bicubic interpolation. If
> you want to do this in GDI you have to do all of the image processing
> yourself. There are no API functions that do it.
>
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
> http://www.bobpowell.net/tips...
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/f...
>
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "Jorge Carlos Paredes Jimenez" <jparedes@winstondata.com> wrote in message
> news:OlctoZQ7EHA.2876@TK2MSFTNGP12.phx.gbl...
> > Hi everybody
> >
> > I'm working with TIFF B&W images in C#, for best performance
> > I'm using GDI instead of GDI+.
> > I'm using BitBlt and StretchBlt.
> >
> > The problem is that when I "paint" the image with StretchBlt or BitBlt
> > the image is not "Smooth", when I "paint" the image with DrawImage
> > the Image is "Smooth".
> >
> > Here I'm sending an example.
> > The image in top was "painted" with StretchBlt, the image on bottom
> > is viewed with Image and Fax Viewer of WXP that has the same result
> > that "paint" the image with Graphics.DrawImage.
> >
> > Somebody knows how to do the same effect with GDI or GDI+ without
> > using DrawImage?
> > The idea is process or apply some filter to the bitmap in memory and
then
> > draw with StretchBlt
> >
> > Thanks in advance!!
> >
> > Jorge Paredes
> >
> >
> >
> >
> >
> >
> >
>
>