Tuesday, 15 May 2012

java - Background in black and image in white colour -


I am converting this project to black and white in color. What I want to do is change the background that it will be black and the image will be white in color .. But most codes which are turning white and white in the image black and background. How can anyone know how to change? I already have a code to black and white that image.

here Enter image details

Google is your best friend ....

In this example you can see that the white turns black and against it / versa
It also works on all other colors too.

And this is very fast , because it uses a color matrix, the pixel is not pixel by color change, which the wold would require width * hight operation. This is a single pass !

[edit]

I thought that you already had black and white image. If this is not your case, use only the grayscale color matrix in the form of a report in response to the Lalit Popatani. To change the brightness and contrast (after changing the grayscale), try the code found here: Something to help to change the shine and contrast here:


No comments:

Post a Comment