convert a RGB image to grayscale Image reducing the memory in java

后端 未结 3 1431
粉色の甜心
粉色の甜心 2020-12-01 12:47

I have an RGB bufferedImage bImg .
I want to convert bImg to gray image.

BufferedImage grayIm=new BufferedImage(bImg.getWidth(null), bImg.getHeight(n         


        
3条回答
  •  旧时难觅i
    2020-12-01 13:22

    I have had the same issue. The solution that you choose not only depends on the performance level. It is also necessary to understand whick image quality you strive for. Please look at these examples. They all maintain the source code. http://codehustler.org/blog/java-to-create-grayscale-images-icons/

提交回复
热议问题