[][src]Trait embedded_graphics::iterator::IntoPixels

pub trait IntoPixels {
    type Color: PixelColor;
    type Iter: Iterator<Item = Pixel<Self::Color>>;
    fn into_pixels(self) -> Self::Iter;
}

Produce an iterator over all pixels in an object.

This trait is implemented for references to all styled items in embedded-graphics, therefore does not consume the original item.

Associated Types

type Color: PixelColor

The type of color for each pixel produced by the iterator returned from into_pixels.

type Iter: Iterator<Item = Pixel<Self::Color>>

The iterator produced when calling into_pixels.

Loading content...

Required methods

fn into_pixels(self) -> Self::Iter

Create an iterator over all pixels in the object.

The iterator may return pixels in any order, however it may be beneficial for performance reasons to return them starting at the top left corner in row-first order.

Loading content...

Implementors

impl<'a, C, '_> IntoPixels for &'_ Styled<Polyline<'a>, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<'a, C>

impl<'a, C, F, '_> IntoPixels for &'_ Styled<Text<'a>, TextStyle<C, F>> where
    C: PixelColor,
    F: Font + Copy
[src]

type Color = C

type Iter = StyledTextIterator<'a, C, F>

impl<C, '_> IntoPixels for &'_ Styled<Arc, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<Self::Color>

impl<C, '_> IntoPixels for &'_ Styled<Circle, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<Self::Color>

impl<C, '_> IntoPixels for &'_ Styled<Ellipse, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<Self::Color>

impl<C, '_> IntoPixels for &'_ Styled<Line, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<Self::Color>

impl<C, '_> IntoPixels for &'_ Styled<Rectangle, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<C>

impl<C, '_> IntoPixels for &'_ Styled<RoundedRectangle, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<Self::Color>

impl<C, '_> IntoPixels for &'_ Styled<Sector, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<Self::Color>

impl<C, '_> IntoPixels for &'_ Styled<Triangle, PrimitiveStyle<C>> where
    C: PixelColor
[src]

type Color = C

type Iter = StyledPixels<Self::Color>

Loading content...