Type Definition imgref::ImgRef [] [src]

type ImgRef<'a, Pixel> = Img<&'a [Pixel]>;

Reference to pixels inside another image. Pass this structure by value (i.e. ImgRef, not &ImgRef).

Only width of pixels of every stride can be modified. The buf may be longer than height*stride, but the extra space should be ignored.

Methods

impl<'a, T> ImgRef<'a, T>
[src]

[src]

Make a reference for a part of the image, without copying any pixels.

Important traits for RowsIter<'a, T>
[src]

[src]

Deprecated

: Size of this buffer is unpredictable. Use .rows() instead

Deprecated

Note: it iterates all pixels in the underlying buffer, not just limited by width/height.

impl<'a, T: Copy> ImgRef<'a, T>
[src]

Important traits for PixelsIter<'a, T>
[src]

Trait Implementations

impl<'a, T> Copy for ImgRef<'a, T>
[src]

References (ImgRef) should be passed "by value" to avoid a double indirection of &Img<&[]>.