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

How to draw mask image in skija? #19

Open
peter158 opened this issue May 14, 2022 · 2 comments
Open

How to draw mask image in skija? #19

peter158 opened this issue May 14, 2022 · 2 comments

Comments

@peter158
Copy link

I want to draw the two pictures together to realize the function of picture mask, just like css style mask-image ,
So I want to know if any ways to use mask-image in skaji?

Looking forward to your reply
thanks

@tonsky
Copy link
Contributor

tonsky commented May 16, 2022

Good question! I would look into ImageFilter::makeBlend, specifically one of

    /** Source trimmed inside destination. */
    SRC_IN,
    
    /** Destination trimmed by source. */
    DST_IN,

BlendModes

@cowwoc
Copy link

cowwoc commented Jan 25, 2023

It sounds like this issue should be closed...

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

No branches or pull requests

3 participants