Function nannou_conrod::image_from_texture[][src]

pub fn image_from_texture(texture: Texture) -> Image
Expand description

Convert the texture into an image compatible with the UI’s image map.

Panics if the texture’s Arc<TextureHandle> has been cloned and more than one unique reference to the inner data still exists.