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) -> PixelOptions
pub const fn sizing(self, sizing: PngSizing) -> PixelOptions
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) -> PixelOptions
pub const fn pixel_format(self, format: PixelFormat) -> PixelOptions
Select interleaved channels and their alpha representation.
Sourcepub const fn row_order(self, order: RowOrder) -> PixelOptions
pub const fn row_order(self, order: RowOrder) -> PixelOptions
Select the physical row order.
Sourcepub const fn matte(self, color: OpaqueColor) -> PixelOptions
pub const fn matte(self, color: OpaqueColor) -> PixelOptions
Composite the final picture onto this opaque sRGB background.
Sourcepub fn region(self, region: ExportRegion) -> PixelOptions
pub fn region(self, region: ExportRegion) -> PixelOptions
Select the publication-only output frame.
Sourcepub const fn transparent(self, transparent: bool) -> PixelOptions
pub const fn transparent(self, transparent: bool) -> PixelOptions
Remove actual native structural paper from the published pixels.
Trait Implementations§
Source§impl Clone for PixelOptions
impl Clone for PixelOptions
Source§fn clone(&self) -> PixelOptions
fn clone(&self) -> PixelOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PixelOptions
impl Debug for PixelOptions
Source§impl Default for PixelOptions
impl Default for PixelOptions
Source§fn default() -> PixelOptions
fn default() -> PixelOptions
Returns the “default value” for a type. Read more
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.