2014-10-07 70 views

回答

0

此, 比如我申請兩個過濾GPUImageGrayscaleFilter()和GPUImageColorInvertFilter()

代碼:

// add filter 1 

Bitmap filter_bitmap=mGPUImage.getBitmapWithFilterApplied(bitmap); 

mGPUImage.setImage(filter_bitmap); 

mGPUImage.setFilter(new GPUImageGrayscaleFilter()); 

// add filter 2 

Bitmap bitmap2 = mGPUImage.getBitmapWithFilterApplied(); 

mGPUImage.setImage(bitmap2); 

mGPUImage.setFilter(new GPUImageColorInvertFilter()); 

好吧,也許你有幫助!