pub struct ImageDrawer<'a> { /* private fields */ }
Expand description

A structure that provides means to draw whole images to the easel.

Implementations

Draw the top white border for centering the image along the y-axis.

If the image completely fills the y axis of the easel, this method does no drawing.

Process the next pixel from a given image.

Pixels are not drawn to the screen unless we’ve hit the end of a row and must draw or there is a color change where we will draw everything up to the current pixel. If you want to draw a pixel by itself, use Easel::draw_pixel() instead.

Arguments
  • rgba: The RGBA pixel to handle.
  • x: The x coordinate of the pixel in image coordinates.
  • y: The x coordinate of the pixel in image coordinates.

Draw the bottom white border and clean up the horizontal edges.

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

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.