Page 1 of 1

detect an image is black and white

Posted: Wed Jun 15, 2011 7:31 am
by kyosukec
Dear Sir,

Is there a way to detect a gdpicture image is black and white or color? As my gdpicture image is created using a the pdfreader and it seems the bit depth is always 32 and so the function getbitdepth does not help. In such case, is there any other way to detect if the image is black and white only? many thanks

i am using GDPicture.NET 6.7.0.9

Re: detect an image is black and white

Posted: Fri Jun 17, 2011 12:38 pm
by Loïc
Hi,

yes, just have a look on the IsBitonal & IsGrayscale functions.

Kind regards,

Loïc