I am developing an application for image processing. To zoom the image, I enlarge PictureBox. But after enlarging I get below image as result.
But I want result like below image
Here is my Code :
picturebox1.Size = new Size((int)(height * zoomfactor), (int)
(width* zoomfactor));
this.picturebox1.Refresh();
The PictureBox by itself will always create a nice and smooth version.
To create the effect you want you need to draw zoomed versions yourself. In doing this you need to set the
Then no blurring will happen..
Example:
Of course you need to avoid setting the PBox to Sizemode Zoom or Stretch!
It could be the image type that is the issue. If you expand the image then you are reducing the compression quality. Maybe this link might help
image Scaling of picture box