using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace p618___Image_resizing
{
    class Renderer
    {
        public static Bitmap ResizeImage(Bitmap picture, int width, int height)
        {
            Bitmap resizedPicture = new Bitmap(width, height);
            using (Graphics graphics = Graphics.FromImage(resizedPicture))
            {
                graphics.DrawImage(picture, 0, 0, width, height);
            }
            return resizedPicture;
        }

        // The rest of the Renderer class isn't needed for this program
    }
}
