I was wondering if it would be possible to recognize that a BufferedImage in java is a blank (invisible for a user in a browser) image.
+1
A:
You mean entirely transparent?
You could use the BufferedImage.getAlphaRaster()
and traverse the pixels to check that they are all completely transparent.
aioobe
2010-07-11 15:13:37
ok, i am trying the traversing... but what does it mean if an image has no alpharaster? getAlphaRaster() for some images it returns null?
edwin eversdijk
2010-07-11 17:01:38
@edwin - then the image has no alpha channel and therefore cannot be transparent
a_m0d
2010-07-13 06:33:33