AndroidPhotoFilters icon indicating copy to clipboard operation
AndroidPhotoFilters copied to clipboard

Illegal State Exception

Open AjithNoah opened this issue 7 years ago • 2 comments

when i do i got illegalstateexception Filter filter = SampleFilters.getBlueMessFilter(); filter.addSubFilter(new ContrastSubfilter(1.1f)); filter.addSubFilter(new BrightnessSubfilter(110)); filter.addSubFilter(new SaturationSubfilter(1.3f)); Bitmap outputImage = filter.processFilter(inputimage);

AjithNoah avatar Sep 18 '18 11:09 AjithNoah

It would be helpful if you could provide exception's stacktrace here.

varunest avatar Sep 25 '18 08:09 varunest

It is likely that you input an inMutable Bitmap.

one possible way To convert: bitmap= bitmap.copy(Bitmap.Config.ARGB_8888, true);

Nickyaozc avatar Oct 19 '18 05:10 Nickyaozc