zng_wgt_image::mask

Function mask_image

source
pub fn mask_image(
    child: impl UiNode,
    source: impl IntoVar<ImageSource>,
) -> impl UiNode
Expand description

P Sets an image mask.

The image alpha channel is used as a mask for the widget and descendants.

This property is configured by contextual values set by the properties in the mask module.