Trait gfx_graphics::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.

Provided methods

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

Gets the image width.

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

Gets the image height.

Implementors

impl<R> ImageSize for Texture<R> where
    R: Resources
[src][+]