detect an image is black and white

General discussions about GdPicture.NET.
Post Reply
kyosukec
Posts: 6
Joined: Fri Oct 09, 2009 11:15 am

detect an image is black and white

Post by kyosukec » Wed Jun 15, 2011 7:31 am

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: detect an image is black and white

Post by Loïc » Fri Jun 17, 2011 12:38 pm

Hi,

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

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest