Function iced::window::icon::from_file

source ·
pub fn from_file<P: AsRef<Path>>(icon_path: P) -> Result<Icon, Error>
Available on crate feature image only.
Expand description

Creates an icon from an image file.

This will return an error in case the file is missing at run-time. You may prefer from_file_data instead.