Code example for Bitmap

Methods: getConfiggetHeightgetPixelgetWidth

0
		} 
 
	}; 
 
	private Bitmap processingBitmap_Brightness(Bitmap src) {
		Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(),
				src.getConfig());
 
		for (int x = 0; x < src.getWidth(); x++) {
			for (int y = 0; y < src.getHeight(); y++) {
				int pixelColor = src.getPixel(x, y);
				int pixelAlpha = Color.alpha(pixelColor);
 
				int pixelRed = Color.red(pixelColor) + brightnessValue;
				int pixelGreen = Color.green(pixelColor) + brightnessValue;
				int pixelBlue = Color.blue(pixelColor) + brightnessValue;
 
				if (pixelRed > 255) {
					pixelRed = 255;
				} else if (pixelRed < 0) {
Contextual code suggestions in your IDE  Get Codota for Java