Effect.MaskImage

The Effect.MaskImage effect is a pixel effect that masks its parent Item (and its children) against the alpha channel of an image.

The following example shows a dinosaur mask being applied to a video.

Video {
    with Effect.MaskImage {
        source: "dinosaur.png"
    }
}

property Bool enabled: true

When the effect is disabled, the mask is not applied.

property Url source

The path or URL of the image to use for the alpha mask.

property Int imageWidthread only

property Int imageHeightread only

The size of the source image.

property Effect.MaskImage.Status statusread only

Effect.MaskImage.Status.Idle

No source url has been specified.

Effect.MaskImage.Status.Loading

The element is loading the image.

Effect.MaskImage.Status.Ready

The element has successfully loaded the image.

Effect.MaskImage.Status.Failed

The element has failed to load the image.