Struct tiny_skia::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: f32Pixmap opacity.
Must be in 0..=1 range.
Default: 1.0
blend_mode: BlendModePixmap blending mode.
Default: SourceOver
quality: FilterQualitySpecifies 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 more