[Mono-dev] Managing multipage tiff

2010-12-16 Thread APS

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) [0x0]
  at System.Drawing.Image.SaveAdd 
(System.Drawing.Imaging.EncoderParameters encoderParams) [0x0]
  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.



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Managing multipage tiff

2010-12-16 Thread Robert Jordan
On 16.12.2010 16:55, APS wrote:

 There's another way to manage multipaged tiff with mono without these
 methods?

You could emit distinct pages and concat them with 'tiffcp'.
This tool is usually part of the libtiff-tools package.

Robert

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list