📜  调整图像大小 c# 代码示例

📅  最后修改于: 2022-03-11 14:48:38.395000             🧑  作者: Mango

代码示例1
public static Image resizeImage(Image imgToResize, Size size)
    {
       return (Image)(new Bitmap(imgToResize, size));
    }

    yourImage = resizeImage(yourImage, new Size(50,50));