[][src]Struct image::SubImage

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]

Construct a new subimage

Returns a mutable reference to the wrapped image.

Change the coordinates of this subimage.

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.

The width and height of this image.

The bounding rectangle of this image.

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

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

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

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

The width of this image.

The height of this image.

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

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

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

Important traits for Pixels<'a, I>

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>

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

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

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

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more