[Mono-bugs] [Bug 80958][Blo] New - System.Drawing.Image.SaveAdd not implement

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Feb 25 14:54:56 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jan at patware.si.

http://bugzilla.ximian.com/show_bug.cgi?id=80958

--- shadow/80958	2007-02-25 14:54:55.000000000 -0500
+++ shadow/80958.tmp.22871	2007-02-25 14:54:55.000000000 -0500
@@ -0,0 +1,109 @@
+Bug#: 80958
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: Debian pack
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: libgdiplus
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jan at patware.si               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Drawing.Image.SaveAdd not implement
+
+function System.Drawing.Image.SaveAdd is not implement 
+
+Unhandled Exception: System.NotImplementedException: Feature not implemented.
+  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
+  at System.Drawing.Image.SaveAdd (System.Drawing.Image image,
+System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000]
+ 
+
+
+
+Steps to reproduce the problem:
+1. Compression of tiff image into G4 format. Multipage tiffs
+2. 
+3. 
+
+Actual Results:
+broken output tiff and error: 
+Unhandled Exception: System.NotImplementedException: Feature not implemented.
+  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
+  at System.Drawing.Image.SaveAdd (System.Drawing.Image image,
+System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000]
+  at (wrapper remoting-invoke-with-check) System.Drawing.Image:SaveAdd
+(System.Drawing.Image,System.Drawing.Imaging.EncoderParameters)
+  at imagemanipulation.TiffCompression.zdruzi (System.String path_in,
+System.String path_out, System.String file) [0x00000]
+  at Cetrti.MainClass.Do_kunde_case_image (System.String Kunde,
+System.String Case2, System.String Image) [0x00000]
+  at Cetrti.MainClass.Main (System.String[] args) [0x00000]
+
+
+Expected Results:
+compressed tiff multipage image
+
+
+How often does this happen? 
+allways
+
+
+Additional Information:
+
+code:
+public void zdruzi(string path_in, string path_out, string file)
+                {
+
+                        string[] files = Directory.GetFiles(path_in, file
++"*.tif");
+                        int fajlov = files.Length;      // files count
+
+
+                        if (fajlov >= 2)
+                        {
+
+// first one
+                        int i=1;
+                        string fajl_1 = path_in + file + "_" + i + ".tif" ;
+                        Image multi = Image.FromFile(fajl_1);
+
+
+// Save the first page (frame).
+                        EncoderParameters eps = new EncoderParameters(2);
+            eps.Param[0] = new EncoderParameter( Encoder.Compression,
+(long)EncoderValue.CompressionCCITT4 );
+            eps.Param[1] = new EncoderParameter( Encoder.SaveFlag,
+(long)EncoderValue.MultiFrame );
+            ImageCodecInfo ici = GetEncoderInfo("image/tiff");
+                        multi.Save(path_out + file + ".tif",ici, eps);
+
+// others
+                        for (int j=2; j <= fajlov; j++)
+                        {
+                                Image page = Image.FromFile(path_in + file
++ "_" + j + ".tif");
+                                EncoderParameters ep=new EncoderParameters(1);
+                        ep.Param[0]=new
+EncoderParameter(Encoder.SaveFlag,(long)EncoderValue.FrameDimensionPage);
+                                multi.SaveAdd(page, ep);
+                                page.Dispose();
+
+                        }
+// ending
+                        EncoderParameter myEncoderParameter;
+                        EncoderParameters myEncoderParameters;
+                        myEncoderParameters = new EncoderParameters(1);
+                        myEncoderParameter = new
+EncoderParameter(Encoder.SaveFlag,(long)EncoderValue.Flush);
+                        myEncoderParameters.Param[0] = myEncoderParameter;
+                        multi.SaveAdd(myEncoderParameters);
+      multi.Dispose();
+
+                        }
+                }


More information about the mono-bugs mailing list