[][src]Struct rin::graphics::image::SubImage

pub struct SubImage<I> { /* fields omitted */ }

A View into another image

Methods

impl<I> SubImage<I>
[src]

Construct a new subimage

Change the coordinates of this subimage.

Convert this subimage to an ImageBuffer

Trait Implementations

impl<I> GenericImageView for SubImage<I> where
    I: Deref,
    <I as Deref>::Target: GenericImageView,
    <I as Deref>::Target: Sized
[src]

The type of pixel.

Underlying image type. This is mainly used by SubImages in order to always have a reference to the original image. This allows for less indirections and it eases the use of nested SubImages. 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

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

impl<I> GenericImage for SubImage<I> where
    I: DerefMut,
    <I as Deref>::Target: GenericImage,
    <I as Deref>::Target: Sized
[src]

Underlying image type. This is mainly used by SubImages in order to always have a reference to the original image. This allows for less indirections and it eases the use of nested SubImages. Read more

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

Puts a pixel at location (x, y) 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

Auto Trait Implementations

impl<I> Send for SubImage<I> where
    I: Send

impl<I> Sync for SubImage<I> where
    I: Sync

Blanket Implementations

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

impl<T> From for T
[src]

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.

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

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

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.

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

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Same for T
[src]

Should always be Self