pub struct Filter { /* private fields */ }
Expand description

Resampling filter.

Implementations

Create a new filter.

Examples
use resize::Filter;
fn kernel(x: f32) -> f32 { f32::max(1.0 - x.abs(), 0.0) }
let filter = Filter::new(Box::new(kernel), 1.0);
👎 Deprecated:

use Type enum

Helper to create Cubic filter with custom B and C parameters.

👎 Deprecated:

use Type enum

Helper to create Lanczos filter with custom radius.

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 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.