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

Clipping Image Based on Color of Mask #70

Open
charlizesmith opened this issue Apr 14, 2020 · 0 comments
Open

Clipping Image Based on Color of Mask #70

charlizesmith opened this issue Apr 14, 2020 · 0 comments

Comments

@charlizesmith
Copy link

Hello Idean,
I am using Shape of View to clip my image into given shape Image. The image is clipped to the black opaque part of Shape Image. I have implemented it successfully.

But i want to know if is it possible that instead of opaque clip area, can i clip my photo on a particular colour or some transparent area of shape of you drawable with this library?

I have noticed that you are using
clipPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN)); canvas.drawBitmap(clipBitmap, 0, 0, clipPaint);

What is the use of Clipmanager ?
Can we clipped image based on Color of mask area?
Can you please help me out with this?

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

1 participant