pub struct PixelOptions { /* private fields */ }Expand description
Options for reading pixels from the same frozen scene as PNG publication.
Implementations§
Source§impl PixelOptions
impl PixelOptions
Sourcepub const fn sizing(self, sizing: PngSizing) -> Self
pub const fn sizing(self, sizing: PngSizing) -> Self
Select pixel dimensions explicitly. Omission means source size for owned reads, or the actual target dimensions for borrowed writes.
Sourcepub const fn pixel_format(self, format: PixelFormat) -> Self
pub const fn pixel_format(self, format: PixelFormat) -> Self
Select interleaved channels and their alpha representation.
Sourcepub const fn matte(self, color: OpaqueColor) -> Self
pub const fn matte(self, color: OpaqueColor) -> Self
Composite the final picture onto this opaque sRGB background.
Sourcepub fn region(self, region: ExportRegion) -> Self
pub fn region(self, region: ExportRegion) -> Self
Select the publication-only output frame.
Sourcepub const fn transparent(self, transparent: bool) -> Self
pub const fn transparent(self, transparent: bool) -> Self
Remove actual native structural paper from the published pixels.
Trait Implementations§
Source§impl Clone for PixelOptions
impl Clone for PixelOptions
Source§impl Debug for PixelOptions
impl Debug for PixelOptions
Source§impl Default for PixelOptions
impl Default for PixelOptions
Source§impl PartialEq for PixelOptions
impl PartialEq for PixelOptions
impl StructuralPartialEq for PixelOptions
Auto Trait Implementations§
impl Forget for PixelOptions
impl Freeze for PixelOptionswhere
*const u8 is !null: Freeze,
PhantomData<PanelStep>: Freeze,
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
PhantomData<RectRef>: Freeze,
PhantomData<PaintBatchRef>: Freeze,
impl Move for PixelOptions
impl RefUnwindSafe for PixelOptions
impl Send for PixelOptions
impl Sync for PixelOptions
impl Unpin for PixelOptions
impl UnsafeUnpin for PixelOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PanelStep>: UnsafeUnpin,
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
PhantomData<RectRef>: UnsafeUnpin,
PhantomData<PaintBatchRef>: UnsafeUnpin,
impl UnwindSafe for PixelOptionswhere
RawVecInner: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BoxRaw<RawKey>: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<SpacingPayload>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.