BetterExplorer.ResizeImage.ChangeImageSize C# (CSharp) Méthode

ChangeImageSize() private static méthode

private static ChangeImageSize ( Bitmap img, int width, int height ) : Bitmap
img System.Drawing.Bitmap
width int
height int
Résultat System.Drawing.Bitmap
        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;
        }