pub struct GroupBitmap<P: Pixel> {
pub bitmap: Bitmap<P>,
pub saved_clip: Clip,
pub params: GroupParams,
pub alpha: Vec<u8>,
pub alpha0: Option<Arc<[u8]>>,
}Expand description
A group bitmap together with its compositing metadata.
Returned by begin_group; passed to paint_group or discard_group.
Fields§
§bitmap: Bitmap<P>The rendered group content.
saved_clip: ClipClip region at the time the group was opened (restored on pop).
params: GroupParamsCompositing parameters recorded at begin_group time.
alpha: Vec<u8>Per-pixel alpha plane (one byte per pixel, matching bitmap’s pixel
count). For an isolated group, this starts at zero; for a non-isolated
group it is copied from the parent’s alpha plane.
alpha0: Option<Arc<[u8]>>For non-isolated groups: a snapshot of the parent alpha at the time the
group was opened, used as alpha0 during the compositing pass.
Implementations§
Auto Trait Implementations§
impl<P> Freeze for GroupBitmap<P>
impl<P> RefUnwindSafe for GroupBitmap<P>where
P: RefUnwindSafe,
impl<P> Send for GroupBitmap<P>
impl<P> Sync for GroupBitmap<P>
impl<P> Unpin for GroupBitmap<P>where
P: Unpin,
impl<P> UnsafeUnpin for GroupBitmap<P>
impl<P> UnwindSafe for GroupBitmap<P>where
P: UnwindSafe,
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