How to transform color image to grayscale in java -


how can transform color image grayscale using java code?

a sample grayscale image reference:

enter image description here

a simplest way draw gray buffered image

bufferedimage image = new bufferedimage(width, height, bufferedimage.type_byte_gray);   graphics g = image.getgraphics();   g.drawimage(colorimage, 0, 0, null);   g.dispose();  

see more ways here


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -