Trait piston_window::ImageSize[][src]

pub trait ImageSize {
    pub fn get_size(&self) -> (u32, u32);

    pub fn get_width(&self) -> u32 { ... }
pub fn get_height(&self) -> u32 { ... } }

Implemented by all images to be used with generic algorithms.

Required methods

pub fn get_size(&self) -> (u32, u32)[src]

Get the image size.

Loading content...

Provided methods

pub fn get_width(&self) -> u32[src]

Gets the image width.

pub fn get_height(&self) -> u32[src]

Gets the image height.

Loading content...


impl<R> ImageSize for Texture<R> where
    R: Resources

Loading content...