pub enum ImageQuality {
Nearest,
Bilinear,
}Expand description
How an image’s samples are reconstructed when it is scaled.
The selection is the engine’s — it ports PDFium’s /Interpolate, its
bNoSmoothing/bHalftone flags, the kHugeImageSize forcing rule and
the UseInterpolateBilinear heuristic — and the kernels are each
backend’s own. Nearest is passed explicitly for an integer-only
translation, because vello_cpu silently downgrades bilinear to nearest
in exactly that case and tiny-skia does not.
Variants§
Trait Implementations§
Source§impl Clone for ImageQuality
impl Clone for ImageQuality
impl Copy for ImageQuality
Source§impl Debug for ImageQuality
impl Debug for ImageQuality
Source§impl Default for ImageQuality
impl Default for ImageQuality
impl Eq for ImageQuality
Source§impl PartialEq for ImageQuality
impl PartialEq for ImageQuality
impl StructuralPartialEq for ImageQuality
Auto Trait Implementations§
impl Freeze for ImageQuality
impl RefUnwindSafe for ImageQuality
impl Send for ImageQuality
impl Sync for ImageQuality
impl Unpin for ImageQuality
impl UnsafeUnpin for ImageQuality
impl UnwindSafe for ImageQuality
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more