Java / JAI - save an image gray-scaled

后端 未结 2 1816
再見小時候
再見小時候 2021-01-19 15:59

I try to save the tiff instead of coloure gray-scaled. How could I do this? (JAI must be used, because it is a tiff!)

Thanks a lot in advance & Best Regards.

2条回答
  •  借酒劲吻你
    2021-01-19 16:14

    Given a BufferedImage, you can use the filter() method of ColorConvertOp, as shown in this example.

提交回复
热议问题