@Override
	public int filterRGB(int x, int y, int argb) {
		int red = argb >> 16 & 0xFF;
		int green = argb >> 8 & 0xFF;
		int blue = argb & 0xFF;
		int p1 = 100 - mPercentage;
		int p2 = mUseWhite ? 255 * mPercentage : 0;

		red = (red * p1 + p2) / 100;
		green = (green * p1 + p2) / 100;
		blue = (blue * p1 + p2) / 100;
		return argb & OPAQUE | red << 16 | green << 8 | blue;
	}