Struct tiny_skia::shaders::pattern::PixmapPaint
source · pub struct PixmapPaint {
pub opacity: f32,
pub blend_mode: BlendMode,
pub quality: FilterQuality,
}
Expand description
Controls how a pixmap should be blended.
Like Paint
, but for Pixmap
.
Fields§
§opacity: f32
Pixmap opacity.
Must be in 0..=1 range.
Default: 1.0
blend_mode: BlendMode
Pixmap blending mode.
Default: SourceOver
quality: FilterQuality
Specifies how much filtering to be done when transforming images.
Default: Nearest
Trait Implementations§
source§impl Clone for PixmapPaint
impl Clone for PixmapPaint
source§fn clone(&self) -> PixmapPaint
fn clone(&self) -> PixmapPaint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PixmapPaint
impl Debug for PixmapPaint
source§impl Default for PixmapPaint
impl Default for PixmapPaint
source§impl PartialEq for PixmapPaint
impl PartialEq for PixmapPaint
impl Copy for PixmapPaint
impl StructuralPartialEq for PixmapPaint
Auto Trait Implementations§
impl Freeze for PixmapPaint
impl RefUnwindSafe for PixmapPaint
impl Send for PixmapPaint
impl Sync for PixmapPaint
impl Unpin for PixmapPaint
impl UnwindSafe for PixmapPaint
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)