You have to write the code for this:
Code:
public Image PictureBoxZoom(Image img, Size size)
{
Bitmap bm = new Bitmap(img, Convert.ToInt32(img.Width * size.Width), Convert.ToInt32(img.Height * size.Height));
Graphics grap = Graphics.FromImage(bm);
grap.InterpolationMode = InterpolationMode.HighQualityBicubic;
return bm;
}
See more here:
http://www.dotnetcurry.com/ShowArtic...ookieSupport=1
Search for it in CodeGuru itself . I have not tested the code above, so please refer to that article. Zom is not available as part of the framework as I know it, so you'll have to write on if you need it.
Bookmarks