getRGB()?

Does getRGB account for the Alpha channel? If not what should i use instead of getRGB?

I am trying to load a Sprite Sheet into an array with transparent backgrounds on the sprites, and i want it to keep the transparency instead of setting it to 0(black). Will getRGB work for this?

public SpriteSheet(String path) {
		this.path = path;
		loadSheet();
	}
	
	private void loadSheet() {
		try {
			BufferedImage image = ImageIO.read(SpriteSheet.class.getResource(path));
			this.w = image.getWidth();
			this.h = image.getHeight();
			pixels = new int[w * h];
			image.getRGB(0, 0, w, h, pixels, 0, w);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

Hi

According to Stack Overflow [icode]getRGB()[/icode] has the alpha channel. Link: http://stackoverflow.com/questions/10726594/bufferedimage-getrgbx-y-does-not-yield-alpha

CopyableCougar4