Trait imgref::ImgExt
[−]
[src]
pub trait ImgExt<Pixel> { fn width_padded(&self) -> usize; fn height_padded(&self) -> usize; }
Additional methods that depend on buffer size
To use these methods you need:
use imgref::*;
Required Methods
fn width_padded(&self) -> usize
Maximum possible width of the data, including the stride.
This method may panic if the underlying buffer is not at least height()*stride()
pixels large.
fn height_padded(&self) -> usize
Height in number of full strides. If the underlying buffer is not an even multiple of strides, the last row is ignored.
This method may panic if the underlying buffer is not at least height()*stride()
pixels large.