Struct image::SubImage

source ·
pub struct SubImage<I> { /* private fields */ }
Expand description

A View into another image

Implementations

Construct a new subimage

Change the coordinates of this subimage.

Convert this subimage to an ImageBuffer

Trait Implementations

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

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
Gets a reference to the mutable pixel at location (x, y) Read more
Put a pixel at location (x, y) Read more
Returns a subimage that is a view into this image.
Returns a mutable reference to the underlying image.
Puts a pixel at location (x, y) Read more
👎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
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 and height of this image.
The bounding rectangle of this image.
Returns the pixel located at (x, y) Read more
Returns an subimage that is an immutable view into this image.
Returns a reference to the underlying image.
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
Returns an Iterator over the pixels of this image. The iterator yields the coordinates of each pixel along with their value Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Sets value as a parameter of self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.