简体   繁体   中英

BufferedImage to array

将缓冲图像转换为整数数组有什么好处?我假设我可以操纵数组并交叉处理图片。就是这样吗?

I think you are referring to getRgb() method of BufferedImage class.

Supposing you want to modify the whole image or a big portion of it, retrieving the pixel array, and perform operations on it could be considerely faster than accessing each single pixel through method calls such as setRgb() .

BufferedImage作为int值数组存入内存可以帮助您通过将int值处理到内存中然后将结果设置回另一个BufferedImage来对图像应用过滤器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM