Hi Prakash,
Thank you for writing us back.
Please forward us the sample problematic file. We will try to reproduce the mentioned issue at our end and update you with our findings via this forum thread.
It is very difficult to depict that an image is a black & white image or a color image. The reason is that if an image contains some pixels of RED color and rest of the image is black & while then you cannot say that it is a black & white image.
Furthermore Aspose.Imaging exposes a property called
BitsPerPixel. It returns an integer value 1, 16, 24 or 32. Here value 1 means that it is a black & while image. Please use the following lines of code to get BitsPerPixel and to know the type of image. For details, please visit the link
Manipulating TIFF Images.
sourceFilePath = @"F:\Ctrash\Input\allthepaperr.tif";
using (Aspose.Imaging.Image imageLoaded = Aspose.Imaging.Image.Load(sourceFilePath))
{
System.Console.WriteLine(imageLoaded.GetType().Name);
System.Console.WriteLine(imageLoaded.BitsPerPixel);
}
Hope the above information helps. Feel free to reach us in case of any query or comments.