Enum speedy2d::image::ImageSmoothingMode [−][src]
ImageSmoothingMode
defines how images are rendered when the pixels of the
source image don’t align perfectly with the pixels of the screen. This could
be because the image is a different size, or because it is rendered at a
position which is a non-integer number of pixels.
Variants
The pixel drawn on the screen will be the closest pixel from the source
image. This may cause aliasing/jagginess, so for a smoother result
the Linear
mode may be more suitable.
The pixel drawn on the screen will be the weighted average of the four
nearest pixels in the source image. This produces a smoother result
than NearestNeighbor
, but in cases where the image is intended to
be pixel-aligned it may cause unnecessary blurriness.
Trait Implementations
impl Clone for ImageSmoothingMode
[src]
fn clone(&self) -> ImageSmoothingMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ImageSmoothingMode
[src]
impl Eq for ImageSmoothingMode
[src]
impl Hash for ImageSmoothingMode
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ImageSmoothingMode> for ImageSmoothingMode
[src]
fn eq(&self, other: &ImageSmoothingMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ImageSmoothingMode
[src]
impl StructuralPartialEq for ImageSmoothingMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageSmoothingMode
impl Send for ImageSmoothingMode
impl Sync for ImageSmoothingMode
impl Unpin for ImageSmoothingMode
impl UnwindSafe for ImageSmoothingMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,