Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal State Exception #33

Open
AjithNoah opened this issue Sep 18, 2018 · 2 comments
Open

Illegal State Exception #33

AjithNoah opened this issue Sep 18, 2018 · 2 comments

Comments

@AjithNoah
Copy link

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);

@varunest
Copy link
Contributor

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

@Nickyaozc
Copy link

It is likely that you input an inMutable Bitmap.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants