Splitting Tiff Files...HELP!!!
I surely hope someone here can help me out, because I've looked all over the internet and have found nothing that helps. I've found some code that I thought would solve my problem, but none of it compiles!
My background - business programming with VB, from VB3 through VB.Net under .Net 2005. No graphics programming experience whatsoever.
My problem - write a C# routine (in .Net 2005) using GDI+ to take a tiff file containing multiple fax documents and split the file into multiple tiffs.
This is as far as I've been able to get:
staticString[] SplitFile(String file_name){
System.Drawing.
Image imageFile;// File name hard-coded for testing...waiting to have file provided on server
imageFile = System.Drawing.
System.Drawing.Imaging.
FrameDimension frameDimensions =new System.Drawing.Imaging.FrameDimension(imageFile.FrameDimensionsList[0]);int NumberOfFrames = imageFile.GetFrameCount(frameDimensions);int intFrame = 0;while (intFrame < NumberOfFrames){
imageFile.SelectActiveFrame(frameDimensions, intFrame);
intFrame++;
}
imageFile.Dispose();
// Code below added so that module will compile. The assignment indicated the procedure should
//return a string array (I assume of file names for a later procedure to save the info to a db)
string[] s;
s =
newstring[5];s[0] =
" ";return s;}

