pub struct LinearImagePaint { /* private fields */ }Expand description
Opt-in linear-sRGB image sampling parameters. Only bounded encoded-sRGB sources are supported here; this is not a wide/HDR texture descriptor. RGB rows multiply decoded [R,G,B,1], then vignette darkens, then RGB clips and encodes to SDR sRGB. Alpha is preserved before native coverage/opacity.
Implementations§
Source§impl LinearImagePaint
impl LinearImagePaint
Sourcepub fn new(rows: [[f32; 4]; 3], vignette: [f32; 4]) -> Result<Self>
pub fn new(rows: [[f32; 4]; 3], vignette: [f32; 4]) -> Result<Self>
Vignette = intensity, inner radius, positive feather, roundness. Radius units refer to the shortest source edge; roundness 0 follows its ellipse. Reject coefficients too large for finite f32 sampling arithmetic.
Trait Implementations§
Source§impl Clone for LinearImagePaint
impl Clone for LinearImagePaint
impl Copy for LinearImagePaint
Source§impl Debug for LinearImagePaint
impl Debug for LinearImagePaint
Source§impl PartialEq for LinearImagePaint
impl PartialEq for LinearImagePaint
impl StructuralPartialEq for LinearImagePaint
Auto Trait Implementations§
impl Freeze for LinearImagePaint
impl RefUnwindSafe for LinearImagePaint
impl Send for LinearImagePaint
impl Sync for LinearImagePaint
impl Unpin for LinearImagePaint
impl UnsafeUnpin for LinearImagePaint
impl UnwindSafe for LinearImagePaint
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
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more