embedded_graphics::image

Trait ImageDimensions

Source
pub trait ImageDimensions {
    // Required methods
    fn width(&self) -> u32;
    fn height(&self) -> u32;
}
Expand description

A trait to get the dimensions of an image.

This trait provides an interface to get the width and height of an image. It should be implemented along with IntoPixelIter for full embedded-graphics integration.

Required Methods§

Source

fn width(&self) -> u32

Get the width in pixels of an image

Source

fn height(&self) -> u32

Get the height in pixels of an image

Implementors§

Source§

impl<C, BO> ImageDimensions for ImageRaw<'_, C, BO>
where C: PixelColor + From<<C as PixelColor>::Raw>, BO: ByteOrder,