pub trait Loader:
Debug
+ Send
+ Sync {
// Required methods
fn preload(
&self,
size: Size,
dpi: f32,
) -> Result<(Vec<u8>, Size2D<u32, Pixel>), Error>;
fn load(
&self,
driver: &Driver,
data: (Vec<u8>, Size2D<u32, Pixel>),
resize: bool,
) -> Result<(Region, Size), Error>;
}Required Methods§
Implementations on Foreign Types§
Source§impl Loader for DynamicImage
Available on crate features avif or bmp or dds or exr or ff or gif or hdr or ico or pnm or qoi or tga or tiff or webp only.
impl Loader for DynamicImage
Available on crate features
avif or bmp or dds or exr or ff or gif or hdr or ico or pnm or qoi or tga or tiff or webp only.