Converting an image in 8-bit grayscale RAW image in java
Please let me know how to convert 开发者_如何学编程a JPG/PNG/BMP image into a 8-bit grayscale RAW image in Java. Is it possible to obtain using ImageIO API?
You can convert an image to 8-bit grayscale using ColorConvertOp
with a BufferedImage.TYPE_BYTE_GRAY
as the filter()
destination. Here's an example.
RAW is actually a family of vendor-defined image formats, many of which can be read with jrawio. Once converted, you might be able to write with ExifTool.
精彩评论