ResizeAlgorithm
pub enum ResizeAlgorithm { Nearest, Bilinear, Bicubic, Lanczos2, Lanczos3,}Enables control over the resizing filter used to generate a new image with a higher or lower number of pixels.
Variants
Uses the Lanczos filter to increase the ability to detect edges and linear features within an image and uses sinc resampling to provide the best possible reconstruction.
Trait implementations
impl Clone for ResizeAlgorithm
impl Debug for ResizeAlgorithm
impl Serialize for ResizeAlgorithm
serialize
View sourcewhere __S: Serializer,Parameters
- self: &Self
- __serializer: __S
Returns
_serde::__private228::Result<__S::Ok, __S::Error>