Generation

generate functionMon, 20 Mar 2023

打开图片

using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; Image image = Image.FromFile(@"C:\path\to\image.jpg"); Bitmap bitmap = new Bitmap(image, new Size(200, 200)); bitmap.Save(@"C:\path\to\image.jpg", ImageFormat.Jpeg);

Want to kickstart your project?Use the new AI Studio to create your code