pub trait ImageSize {
// Required method
fn get_size(&self) -> (u32, u32);
// Provided methods
fn get_width(&self) -> u32 { ... }
fn get_height(&self) -> u32 { ... }
}
Expand description
Implemented by all images to be used with generic algorithms.
Required Methods§
Provided Methods§
sourcefn get_height(&self) -> u32
fn get_height(&self) -> u32
Gets the image height.