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

Applying filters to Bitmaps #48

Open
Ozgun137 opened this issue Oct 2, 2020 · 1 comment
Open

Applying filters to Bitmaps #48

Ozgun137 opened this issue Oct 2, 2020 · 1 comment

Comments

@Ozgun137
Copy link

Ozgun137 commented Oct 2, 2020

I was just wondering if it is possible to apply filters to bitmaps as well. In our case, it is not just the gallery image, we work with bitmaps that need to be filtered. Can you help me with this?

@skkallayath
Copy link
Owner

skkallayath commented Oct 4, 2020

@Ozgun137

You can use the bytes from bitmap to apply the filter as following

var bytes = image.getBytes();
filter.apply(bytes, image.width, image.height);

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

2 participants