[][src]Function fna3d::img::from_path

pub fn from_path(
    path: impl AsRef<Path>,
    force_size: Option<[u32; 2]>
) -> (*const u8, u32, [u32; 2])

Decodes PNG/JPG/GIF data into raw RGBA8 texture data

Be sure to free the returned memory after use!

The return type is not Vec because it frees its content when dropping.