HumbleUI / Skija

Java bindings for Skia
Apache License 2.0
498 stars 34 forks source link

How to draw mask image in skija? #19

Open peter158 opened 2 years ago

peter158 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

It sounds like this issue should be closed...