How to transform color image to grayscale in java -
how can transform color image grayscale using java code?
a sample grayscale image reference:
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
Post a Comment