Struct tiny_skia::PixmapPaint [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for PixmapPaint
impl Send for PixmapPaint
impl Sync for PixmapPaint
impl Unpin for PixmapPaint
impl UnwindSafe for PixmapPaint
Blanket Implementations
Mutably borrows from an owned value. Read more