draw_sub_image

Function draw_sub_image 

Source
pub fn draw_sub_image(i: &SubImage<'_>, p: Point)
Expand description

Draw a subregion of an image.

Most often used to draw a sprite from a sprite atlas.