0

I have a colored textual Image to be in black and white. Specifically the text to be in black and background to be in white for whatever colored it might be

I am using JAVA to perform this operation.

Can anybody help me out to with a code snippet or point me to a discussion which is useful.

Suvidh
  • 103
  • 1
  • 2
  • 10

1 Answers1

2

if you want to develop your own converter RGB to Black/White, please check Java - get pixel array from image . Here you import a image, access the pixel and with a specific threshold of the color you can decide to convert to black or white.

Or you use http://www.imagemagick.org/ as commandline tool (with api http://www.imagemagick.org/script/api.php).

Regards

Community
  • 1
  • 1
srIT
  • 46
  • 1
  • I might not know the color of the image at run time. I need a way to get the image in black or white, with text in black and background in white no matter what color it is in. – Suvidh Oct 23 '14 at 09:53