[−][src]Trait embedded_graphics::iterator::IntoPixels
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
.
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.
Implementors
impl<'a, C, '_> IntoPixels for &'_ Styled<Polyline<'a>, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<'a, C, F, '_> IntoPixels for &'_ Styled<Text<'a>, TextStyle<C, F>> where
C: PixelColor,
F: Font + Copy,
[src]
C: PixelColor,
F: Font + Copy,
impl<C, '_> IntoPixels for &'_ Styled<Arc, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<C, '_> IntoPixels for &'_ Styled<Circle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<C, '_> IntoPixels for &'_ Styled<Ellipse, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<C, '_> IntoPixels for &'_ Styled<Line, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<C, '_> IntoPixels for &'_ Styled<Rectangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<C, '_> IntoPixels for &'_ Styled<RoundedRectangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<C, '_> IntoPixels for &'_ Styled<Sector, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,
impl<C, '_> IntoPixels for &'_ Styled<Triangle, PrimitiveStyle<C>> where
C: PixelColor,
[src]
C: PixelColor,