How to recognize a blank / invisible image using java

I was interested to know if it is possible to recognize that BufferedImage in java is an empty (invisible to the user in the browser) image.

+4
source share
1 answer

Do you mean completely transparent?

You can use BufferedImage.getAlphaRaster() and traverse the pixels to make sure they are completely transparent.

+1
source

Source: https://habr.com/ru/post/1315335/


All Articles