When saving the image in C# WinForm, I encountered the following error:
System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.'
Here is the updated code with the necessary modifications:
string imagePath = Path.Combine(imagesFolder, $"SavedImage_{DateTime.Now.Ticks}.png");
image.Save(imagePath, System.Drawing.Imaging.ImageFormat.Png);
i try to change the why of saving like using Bitmap but dont work
New contributor
m. Aref is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.