pub struct SMask {
pub width: i64,
pub height: i64,
pub interpolate: bool,
pub bits_per_component: i64,
pub matte: Vec<i64>,
}
Expand description
SMask
dictionary. A soft mask (or SMask
) is a greyscale image
that is used to mask another image
Fields§
§width: i64
If self.matte
is set to true, this entry must be the same
width as the parent image. If not, the SMask
is resampled to the parent unit square
height: i64
See width
interpolate: bool
§bits_per_component: i64
Bits per component, required (warning: this is a grayscale image)
matte: Vec<i64>
Vec of component values
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SMask
impl Send for SMask
impl Sync for SMask
impl Unpin for SMask
impl UnwindSafe for SMask
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