Erik,

Thanx alot for the sample and all the info!!!

Best Regards,

Andreas


-----Ursprüngliche Nachricht-----
Von: Erik Scholtz, ArgonSoft GmbH [mailto:[email protected]] 
Gesendet: Montag, 1. Februar 2010 11:54
An: [email protected]
Betreff: Re: How can I find out if an image is black and white?


Andreas,

look at the javadoc of PDXObjectImage: 
http://www.pdfbox.org/javadoc/org/pdfbox/pdmodel/graphics/xobject/PDXObjectImage.html

There you will find some methodes to work with the embedded pictures. 
Have a closer look at:

getColorSpace()

If this does not fit your needs, you will have to extract the image from 
the PDF and use normal graphic-libraries on the image to find out what 
you need.

Greetings,
Erik


Roeder, Andreas wrote:
> Hello,
> 
> How can I find out if an image is black and white (no greyscale, no 
> colors)?
> 
> Best Regards,
> 
> Andreas
> 

Reply via email to