S
Stan SR
Hi,
I have some tiff images that I need to use for pdf files.
I need to resize them, but I get a very bad quality.
I would like to know what is the trick to keep the high quality ?
Here's my current code
private System.Drawing.Image Resize(System.Drawing.Image myPic)
{
System.Drawing.Image myPicOut=null;
int newWidth=myPic.Width/4;
int newHeight= myPic.Height/4;
myPicOut=new Bitmap(newWidth,newHeight);
Graphics g= Graphics.FromImage(myPicOut);
g.InterpolationMode=System.Drawing.Drawing2D.Interpolation.HighQualityBicubic;
g.DrawImage(myPic,0,0,newWidth,newHeight);
myPic.Dispose();
return myPicOut;
}
Thanks for your help
Stan
I have some tiff images that I need to use for pdf files.
I need to resize them, but I get a very bad quality.
I would like to know what is the trick to keep the high quality ?
Here's my current code
private System.Drawing.Image Resize(System.Drawing.Image myPic)
{
System.Drawing.Image myPicOut=null;
int newWidth=myPic.Width/4;
int newHeight= myPic.Height/4;
myPicOut=new Bitmap(newWidth,newHeight);
Graphics g= Graphics.FromImage(myPicOut);
g.InterpolationMode=System.Drawing.Drawing2D.Interpolation.HighQualityBicubic;
g.DrawImage(myPic,0,0,newWidth,newHeight);
myPic.Dispose();
return myPicOut;
}
Thanks for your help
Stan