Loading...

detect an image is black and white

General discussions about GdPicture.NET.

detect an image is black and white

Postby 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
kyosukec
 
Posts: 6
Joined: Fri Oct 09, 2009 11:15 am

Re: detect an image is black and white

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

Hi,

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

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4442
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to General discussions

Who is online

Users browsing this forum: No registered users and 1 guest