|
<< Click to Display Table of Contents >> Resize image |
![]() ![]()
|
public Bitmap Resize(Bitmap source, int width, int height)
{
Bitmap resized = new Bitmap(width, height);
using (Graphics g = Graphics.FromImage((Image)resized))
{
g.DrawImage(source, 0, 0, width, height);
}
return resized;
}