简体   繁体   English

如何使用java识别空白/不可见的图像

[英]How to recognize a blank/invisible image using java

我想知道是否有可能认识到java中的BufferedImage是一个空白(对于浏览器中的用户来说是不可见的)图像。

You mean entirely transparent? 你的意思是完全透明?

You could use the BufferedImage.getAlphaRaster() and traverse the pixels to check that they are all completely transparent. 您可以使用BufferedImage.getAlphaRaster()并遍历像素以检查它们是否完全透明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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