Aurora.Services.WebAPIHandler.ResizeBitmap C# (CSharp) Метод

ResizeBitmap() приватный Метод

private ResizeBitmap ( Image b, int nWidth, int nHeight ) : Bitmap
b Image
nWidth int
nHeight int
Результат System.Drawing.Bitmap
        private Bitmap ResizeBitmap(Image b, int nWidth, int nHeight)
        {
            Bitmap newsize = new Bitmap(nWidth, nHeight);
            Graphics temp = Graphics.FromImage(newsize);
            temp.DrawImage(b, 0, 0, nWidth, nHeight);
            temp.SmoothingMode = SmoothingMode.AntiAlias;
            temp.DrawString(m_servernick, new Font("Arial", 8, FontStyle.Regular), new SolidBrush(Color.FromArgb(90, 255, 255, 50)), new Point(2, 115));

            return newsize;
        }