background_img

Function background_img 

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

P Background image.

This property applies an image as background.

The image can be configured by the same img_* contextual properties that affect Image! widgets, a subset of image properties have background_img_* equivalent that only affect background images. You can also adjust the opacity of the image using background_img_opacity.

Note that you can use you can always set background or background_fn to an Image! widget directly to access advanced image configuration properties.