Ich tried to get the alpha-value from a certain pixel of a
BufferedImage with:
int alpha = drawLayer.getColorModel().getAlpha(rgb);
drawLayer is the BufferedImage and rgb the int value of
the actual pixel.
But then
appears.
How can I get the alpha value properly ?
At first I tried to get it with
int alpha = (new Color(rgb)).getAlpha();
but that returns always the same value, independent on
the actual alpha value which is in the BufferedImage.