[][src]Trait ffimage::core::traits::ImageView

pub trait ImageView {
    type T: Pixel;
    fn width(&self) -> u32;
fn height(&self) -> u32;
fn stride(&self) -> usize;
fn get_pixel(&self, x: u32, y: u32) -> Option<Self::T>; }

View into an image, provides read-only pixel access

Associated Types

type T: Pixel

Pixel type

Loading content...

Required methods

fn width(&self) -> u32

Width in pixels

fn height(&self) -> u32

Height in pixels

fn stride(&self) -> usize

Length of one pixel row in bytes

fn get_pixel(&self, x: u32, y: u32) -> Option<Self::T>

Returns the pixel at the specified coordinates

Loading content...

Implementors

impl<'a, T: Pixel> ImageView for GenericFlatBuffer<'a, T>[src]

type T = T

impl<'a, T: Pixel> ImageView for GenericView<'a, T>[src]

type T = T

impl<T: Pixel> ImageView for GenericBuffer<T>[src]

type T = T

Loading content...