pub struct SoftMask {
pub mask_list: DisplayList,
pub subtype: SoftMaskSubtype,
pub bbox: [f64; 4],
pub backdrop_color: Option<[f64; 3]>,
pub transfer_invert: bool,
pub has_nested_mask_scope: bool,
}Expand description
A resolved soft mask from ExtGState /SMask.
Fields§
§mask_list: DisplayListPre-rendered mask form display list.
subtype: SoftMaskSubtypeHow to extract the mask (alpha or luminosity).
bbox: [f64; 4]Device-space bounding box.
backdrop_color: Option<[f64; 3]>Backdrop color for luminosity masks (RGB, 0.0–1.0).
transfer_invert: boolWhether the mask values should be inverted (from /TR {1 exch sub}).
has_nested_mask_scope: boolWhether the mask form contained nested soft mask scopes (gs-set SMask inside the form that was flushed). When true, the renderer must composite semi-transparent pixels onto the backdrop before extracting luminosity, since the alpha encodes mask modulation from nested masks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoftMask
impl RefUnwindSafe for SoftMask
impl Send for SoftMask
impl Sync for SoftMask
impl Unpin for SoftMask
impl UnsafeUnpin for SoftMask
impl UnwindSafe for SoftMask
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more