Does anyone know is there a better way to check if some image contain a (semi)transparent pixel beside going trough all pixels and check their alpha channel?
[pseudo]
for each pixel in image:
if pixel.alpha != 0xff:
return true
Thanks in advance.
You could use BufferedImage.getType()
or
ColorModel.hasAlpha()
to check if there is an alpha channel.
If there is an alpha channel, you will have to check the individual pixels.