pub struct InlineMaskRegion(/* private fields */);Available on crate feature
v1_18 only.Implementations§
Source§impl InlineMaskRegion
impl InlineMaskRegion
Sourcepub fn inline_mask_data(&self) -> (Rectangle, Vec<u8>)
pub fn inline_mask_data(&self) -> (Rectangle, Vec<u8>)
Get data for an inline mask region.
This returns the values in the reference coordinate space (from the parent region item). The mask location is represented by a left top corner position, and a size defined by a width and height.
The mask is held as inline data on the region, one bit per pixel,
the most significant bit first pixel, no padding. If the bit value is
1, the corresponding pixel is part of the region. If the bit value
is 0, the corresponding pixel is not part of the region.
Auto Trait Implementations§
impl Freeze for InlineMaskRegion
impl RefUnwindSafe for InlineMaskRegion
impl !Send for InlineMaskRegion
impl !Sync for InlineMaskRegion
impl Unpin for InlineMaskRegion
impl UnwindSafe for InlineMaskRegion
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