C# .NET - Image manipulation in photoshop and illustrator

Asked By paulraj benjamin on 11-Nov-11 07:16 AM
Dear All,
I need to find a image whether it is a coloured image or black and white image for tiff and eps files.
I need to use c#.
Its very urgent.
Kirtan Patel replied to paulraj benjamin on 11-Nov-11 07:25 AM
you can manipulate them using GDI+ classes provided by .net framework heer is some class coded by author of article about tiff management with c# src :http://www.codeproject.com/KB/GDI-plus/tiffmanager.aspx

public ArrayList SplitTiffImage(string outPutDirectory,EncoderValue format)
  string fileStartString = outPutDirectory + "\\" + 
  ArrayList splitedFileNames=new ArrayList();
  Guid objGuid=image.FrameDimensionsList[0];
  FrameDimension objDimension=new FrameDimension(objGuid);
  //Saves every frame as a separate file.
  Encoder enc=Encoder.Compression;
  int curFrame=0;
  for (int i=0;i<_PageNumber;i++)
    EncoderParameters ep=new EncoderParameters(1);
    ep.Param[0]=new EncoderParameter(enc,(long)format);
    ImageCodecInfo info=GetEncoderInfo("image/tiff");
    //Save the master bitmap
    string fileName=string.Format("{0}{1}.TIF", 
       fileStartString, i.ToString());
  catch (Exception)
  return splitedFileNames;