img_auto_scale

Function img_auto_scale 

Source
pub fn img_auto_scale(
    child: impl IntoUiNode,
    scale: impl IntoVar<ImageAutoScale>,
) -> UiNode
Expand description

P Sets the auto scale mode applied to all inner images.

By default scales by the screen factor so that the image layouts with the same proportional dimensions as other widgets independent of what screen is displaying it.

Set to false to display the original pixel size.

Set to ImageAutoScale::Density to display the print size in a calibrated screen.