/////////////////////////////2016/07/04///////////////////////
/////////////////////////////by xbw///////////////////////////////
/////////////////////////////环境 eclipse///////////////////
干点本专业的事情吧,嘿嘿
public BufferedImage filter(BufferedImage src) { int width = src.getWidth(); int height = src.getHeight(); int[] inPixels = new int[width*height]; for(int row=0; row<height; row++) { int ta = 0, tr = 0, tg = 0, tb = 0; for(int col=0; col<width; col++) { index = row * width + col; ta = (inPixels[index] >> 24) & 0xff; tr = (inPixels[index] >> 16) & 0xff; tg = (inPixels[index] >> 8) & 0xff; tb = inPixels[index] & 0xff; } } }