Link to home
Start Free TrialLog in
Avatar of zimmer9
zimmer9Flag for United States of America

asked on

Do you know how I could save the image array ELEMENTS as individual *.tiff files ?

I am developing a C# application using VS2015 and .Net Framework 4.5

If I have an image array as follows:

int varI;
int.TryParse(reccount, out varI);
Image[] newImage = new Image[varI];

Open in new window


Do you know how I could save the image array ELEMENTS as individual *.tiff files ?

I tried:

string filenamerev = MyGlobals.BASE_DIR + "B.B.CHKIMAGE.CHKIMAGE." + MyGlobals.sequencenum + "." + ConvertToJulianyyyyddd(DateTime.Now) + ".TIFF";

newImage[MyGlobals.CheckOrderNum - 1].Save(filenamerev, System.Drawing.Imaging.ImageFormat.Tiff);

Open in new window


But this causes the following error:

An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.dll

Additional information: Parameter is not valid.
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you pls share the entire code?

How you are garbaging the graphics object?