Code example for Bitmap

Methods: copygetHeightgetPixelgetWidth

0
		return bitmap_temp; 
	} 
	 
	public static Bitmap applyFilter_grayscale(Bitmap bitmap) throws FileNotFoundException, IOException{ 
 
		Bitmap bitmap_temp = bitmap.copy(Config.ARGB_8888, true); 
		GrayscaleFilter filter = new GrayscaleFilter(); 
		for (int y = 0; y < bitmap.getHeight(); y++) { 
			for (int x = 0; x < bitmap.getWidth(); x++) { 
				bitmap_temp.setPixel(x, y, filter.filterRGB(x,y,bitmap.getPixel(x, y))); 
			} 
		} 
		return bitmap_temp; 
	} 
	 
	public static Bitmap applyFilter_channelMixR(Bitmap bitmap) throws FileNotFoundException, IOException{ 
 
		Bitmap bitmap_temp = bitmap.copy(Config.ARGB_8888, true); 
		ChannelMixFilter filter = new ChannelMixFilter(); 
		filter.setIntoR(127);filter.setIntoG(0);filter.setIntoB(0); 
Experience pair programming with AI  Get Codota for Java