Nach der folgenden Zeile Code
bild.Save(folderName + "\\" + frameIndex.ToString("D" + digits) + ".jpg", ImageFormat.Jpeg);
bekomme ich manchmal einen allgemeinen GDI+ Fehler. Der Fehler taucht immer bei den gleichen Dateien auf, aber ich sehe nicht den Fehler...
- bild {System.Drawing.Bitmap} System.Drawing.Bitmap
- base {System.Drawing.Bitmap} System.Drawing.Image {System.Drawing.Bitmap}
+ base {System.Drawing.Bitmap} System.MarshalByRefObject {System.Drawing.Bitmap}
Flags 2 int
+ FrameDimensionsList {System.Guid[1]} System.Guid[]
Height 320 int
HorizontalResolution 96.0 float
+ Palette {System.Drawing.Imaging.ColorPalette} System.Drawing.Imaging.ColorPalette
+ PhysicalDimension {Width = 568.0 Height = 320.0} System.Drawing.SizeF
PixelFormat Format24bppRgb System.Drawing.Imaging.PixelFormat
PropertyIdList {int[0]} int[]
PropertyItems {System.Drawing.Imaging.PropertyItem[0]} System.Drawing.Imaging.PropertyItem[]
+ RawFormat {[ImageFormat: b96b3caa-0728-11d3-9d7b-0000f81ef32e]} System.Drawing.Imaging.ImageFormat
+ Size {Width = 568 Height = 320} System.Drawing.Size
Tag null object
VerticalResolution 96.0 float
Width 568 int
+ Nicht öffentliche Member {System.Drawing.Bitmap} System.Drawing.Image {System.Drawing.Bitmap}
Generic Error in GDI+ kann einiges sein. Wohin speicherst du das Bild? Hast du Berechtigungen, das Bild zu speichern?
BTW: Path.Combine