pub struct StencilImage<'a, 'b> { /* private fields */ }Expand description
A stencil image.
Implementations§
Source§impl<'a, 'b> StencilImage<'a, 'b>
impl<'a, 'b> StencilImage<'a, 'b>
Sourcepub fn with_stencil(
&self,
func: impl FnOnce(LumaData, &Paint<'a>),
target_dimension: Option<(u32, u32)>,
)
pub fn with_stencil( &self, func: impl FnOnce(LumaData, &Paint<'a>), target_dimension: Option<(u32, u32)>, )
Perform some operation with the stencil data of the image.
The second argument allows you to give the image decoder a hint for what resolution of the image you want to have. Note that this does not mean that the resulting image will have that dimension. Instead, it allows the image decoder to extract a lower-resolution version of the image in certain cases.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for StencilImage<'a, 'b>
impl<'a, 'b> !UnwindSafe for StencilImage<'a, 'b>
impl<'a, 'b> Freeze for StencilImage<'a, 'b>
impl<'a, 'b> Send for StencilImage<'a, 'b>
impl<'a, 'b> Sync for StencilImage<'a, 'b>
impl<'a, 'b> Unpin for StencilImage<'a, 'b>
impl<'a, 'b> UnsafeUnpin for StencilImage<'a, 'b>
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