Function zng_wgt_image::img_scale_factor

source ยท
pub fn img_scale_factor(
    child: impl UiNode,
    enabled: impl IntoVar<bool>,
) -> impl UiNode
Expand description

P If the image desired size is scaled by the screen scale factor.

The image desired size is its original size after img_crop, it is a pixel value, but widgets are layout using device independent pixels that automatically scale in higher definition displays, when this property is enabled the image size is also scaled so that the image will take the same screen space in all devices, the image can end

This is enabled by default.