Tif Image Create
-
I'm writing a process that splits a multi-page tiff image into a bunch of single page tiffs. I'm using the MODI framework for this. I can not figure out how to create a new tif image. the MODI.Document.Create requires a filename of a file that exists. THANKS!!!!
-
I'm writing a process that splits a multi-page tiff image into a bunch of single page tiffs. I'm using the MODI framework for this. I can not figure out how to create a new tif image. the MODI.Document.Create requires a filename of a file that exists. THANKS!!!!
I am not familiar with MODI. From the MODI documentation on Document.Create[^] I understand it intends to create a document (not a TIFF file) and it reads an existing TIFF file to use it inside the new document. I'm not sure I understand how that fits your plans... Anyway, the following C# code snippet would create a TIFF file with a dummy image:
int width=1;
int height=1;
Bitmap bm=new Bitmap(width, height);
bm.Save(fileSpec, ImageFormat.Tiff);Does this help ? :)
Luc Pattyn