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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -