How to use java to recognize blank / invisible images

I wonder if it is possible to realize that the buffered image in Java is a blank (invisible to the user in the browser) image

Solution

You mean completely transparent?

You can use bufferedimage Getalpharaster () and iterate over the pixels to check that they are completely transparent

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>