0
bmp 파일을 my pictures \ test에 저장하는 프로그램을 만들고 싶습니다. 알 수없는 이유로 "GDI +에서 일반적인 오류가 발생했습니다." 왜 이런 일이 저에게 일어나는지 이해하게 도와주세요. 내 코드는 다음과 같습니다내 그림에 img를 저장할 때 gdi + 오류가 발생했습니다.
System.Drawing.Image img = Properties.Resources.pic;
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
string path2 = [email protected]"\"+"test";
img.Save(path2, System.Drawing.Imaging.ImageFormat.Bmp);