3 integers from ARGB integer

Hi,I use getRGB function to get an integer ARGB for each pixel of my image.ARGB = (byte) img.getRGB(x, y);How can I parse this value in order to have 3 integers R, G, B ?thank you
[214 byte] By [aneuryzmaa] at [2007-11-27 5:53:18]
# 1
int rgb = img.getRGB(x, y);int r = (rgb >> 16) & 0xff;int g = (rgb >> 8) & 0xff;int b = rgb & 0xff;
Rodney_McKaya at 2007-7-12 15:46:07 > top of Java-index,Security,Cryptography...