Enum raster::editor::ResizeMode [] [src]

pub enum ResizeMode {
    Exact,
    ExactWidth,
    ExactHeight,
    Fit,
    Fill,
}

An enum for the various modes that can be used for resizing.

Variants

Resize image to exact dimensions ignoring aspect ratio.

Resize image to exact width. Height parameter is ignored and is auto calculated instead.

Resize image to exact height. Width parameter is ignored and is auto calculated instead.

Resize an image to fit within the given width and height.

Resize image to fill all the space in the given dimension. Excess parts are cropped.

Trait Implementations

impl Debug for ResizeMode
[src]

Formats the value using the given formatter.