private static ChangeImageSize ( |
||
img | ||
width | int | |
height | int | |
return |
private static Bitmap ChangeImageSize(Bitmap img, int width, int height)
{
Bitmap bm_dest = new Bitmap(width, height);
Graphics gr_dest = Graphics.FromImage(bm_dest);
gr_dest.DrawImage(img, 0, 0, bm_dest.Width + 1, bm_dest.Height + 1);
return bm_dest;
}