Struct bevy_retrograde::core::image::SubImage[]

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

A View into another image

Instances of this struct can be created using:

Implementations

Construct a new subimage The coordinates set the position of the top left corner of the 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). Indexed from top left. Read more

Put a pixel at location (x, y). Indexed from top left. Read more

Returns a mutable subimage that is a view into this image. If you want an immutable subimage instead, use GenericImageView::view The coordinates set the position of the top left corner of the SubImage. Read more

Returns a mutable reference to the underlying image.

Puts a pixel at location (x, y). Indexed from top left. Read more

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

Copies all of the pixels from one part of this image to another part of 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). Indexed from top left. Read more

Returns an subimage that is an immutable view into this image. You can use GenericImage::sub_image if you need a mutable view instead. The coordinates set the position of the top left corner of the view. Read more

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). Indexed from top left. 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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.