Struct image::SubImage [] [src]

pub struct SubImage<'a, I: 'a> { /* fields omitted */ }

A View into another image

Methods

impl<'a, I: GenericImage + 'static> SubImage<'a, I> where
    I::Pixel: 'static,
    <I::Pixel as Pixel>::Subpixel: 'static, 
[src]

[src]

Construct a new subimage

Important traits for &'a mut W
[src]

Returns a mutable reference to the wrapped image.

[src]

Change the coordinates of this subimage.

[src]

Convert this subimage to an ImageBuffer

Trait Implementations

impl<'a, I: GenericImage + 'static> GenericImage for SubImage<'a, I> where
    I::Pixel: 'static,
    <I::Pixel as Pixel>::Subpixel: 'static, 
[src]

The type of pixel.

[src]

The width and height of this image.

[src]

The bounding rectangle of this image.

[src]

Returns the pixel located at (x, y) Read more

[src]

Put a pixel at location (x, y) Read more

[src]

DEPRECATED: This method will be removed. Blend the pixel directly instead.

[src]

Puts a pixel at location (x, y) Read more

[src]

The width of this image.

[src]

The height of this image.

[src]

Returns true if this x, y coordinate is contained inside the image.

[src]

Returns the pixel located at (x, y) Read more

[src]

Puts a pixel at location (x, y) Read more

Important traits for Pixels<'a, I>
[src]

Returns an Iterator over the pixels of this image. The iterator yields the coordinates of each pixel along with their value Read more

Important traits for MutPixels<'a, I>
[src]

Deprecated

: This cannot be implemented safely in Rust. Please use the image buffer directly.

Returns an Iterator over mutable pixels of this image. The iterator yields the coordinates of each pixel along with a mutable reference to them. Read more

[src]

Copies all of the pixels from another image into this image. Read more

[src]

Returns a subimage that is a view into this image.

Auto Trait Implementations

impl<'a, I> Send for SubImage<'a, I> where
    I: Send

impl<'a, I> Sync for SubImage<'a, I> where
    I: Sync