[Mono-dev] Managing multipage tiff

APS dev.malst at apsystems.it
Thu Dec 16 10:55:32 EST 2010


Hi,

I've a library that works on multipage tiff.
Creating a new multipage image I do something like this:

EncoderParameters eps=new EncoderParameters(2);
eps.Param[0]=new EncoderParameter(Encoder.Compression, 
(long)EncoderValue.CompressionCCITT3);
eps.Param[1] = new EncoderParameter(Encoder.SaveFlag, 
(long)EncoderValue.MultiFrame);

the first page is created with

imageTmp1.Save(Result, infos[n], eps);
ImgTmp=(System.Drawing.Image)imageTmp1.Clone();

the second page with

eps.Param[0]=new EncoderParameter(Encoder.Compression, 
(long)EncoderValue.CompressionCCITT3);
eps.Param[1]=new EncoderParameter(Encoder.SaveFlag, 
(long)EncoderValue.FrameDimensionPage);
ImgTmp.SaveAdd(imageTmp1, eps);

When this second statement is executed I obtain the following error:

System.Web.HttpUnhandledException: Exception of type 
'System.Web.HttpUnhandledException' was thrown. ---> 
System.NotImplementedException: The requested feature is not 
implemented [GDI+ status: NotImplemented]
   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000]
   at System.Drawing.Image.SaveAdd 
(System.Drawing.Imaging.EncoderParameters encoderParams) [0x00000]
   at (wrapper remoting-invoke-with-check) 
System.Drawing.Image:SaveAdd (System.Drawing.Imaging.EncoderParameters)

I downloaded libgdiplus from mono web site and I checked that also 
libgdiplus 2.8.1 doesn't support this method.
There's another way to manage multipaged tiff with mono without these methods?
Thanks in advance.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20101216/3bd0bbf2/attachment-0001.html 


More information about the Mono-devel-list mailing list