private void paintPixel(int position, int color) {
		int trans = ((color >> 24) & 0xff);
		if (trans == 0);
		else if (trans == 0xff)
			pixels[position] = color;
		else {
			pixels[position] = applyTransparency(color, pixels[position]);
		}		
	}