[−][src]Function lvgl::widgets::img::set_auto_size
pub fn set_auto_size(img: *mut lv_obj_t, autosize_en: bool) -> MynewtResult<()>
Enable the auto size feature. If enabled the object size will be same as the picture size.
img
: pointer to an imageen
: true: auto size enable, false: auto size disable