[−][src]Struct nanachi::pixel::PremultipliedRgba
Premultiplied RGBA color
PremultipliedRgba
keeps RGB value that premultiplied alpha.
It may be faster than Rgba
but inaccurate on transparent pixels.
Trait Implementations
impl Add<PremultipliedRgba> for PremultipliedRgba
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, rhs: PremultipliedRgba) -> Self::Output
[src]
impl Clone for PremultipliedRgba
[src]
pub fn clone(&self) -> PremultipliedRgba
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Compositor<PremultipliedRgba> for Clear
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Src
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for DstAtop
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Xor
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Add
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Darken
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Lighten
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Multiply
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Screen
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Overlay
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for HardLight
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Dodge
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Dst
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Burn
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for SoftLight
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Difference
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Exclusion
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for Basic
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for SrcOver
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for SrcIn
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for SrcOut
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for SrcAtop
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for DstOver
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for DstIn
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Compositor<PremultipliedRgba> for DstOut
[src]
pub fn composite(
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
[src]
&self,
a: &PremultipliedRgba,
b: &PremultipliedRgba,
alpha: f64
) -> PremultipliedRgba
impl Copy for PremultipliedRgba
[src]
impl Into<PremultipliedRgba> for Rgba
[src]
pub fn into(self) -> PremultipliedRgba
[src]
impl Into<Rgba> for PremultipliedRgba
[src]
impl Mul<PremultipliedRgba> for PremultipliedRgba
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, rhs: PremultipliedRgba) -> Self::Output
[src]
impl Mul<f32> for PremultipliedRgba
[src]
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, rhs: f32) -> Self::Output
[src]
impl Pixel for PremultipliedRgba
[src]
impl Sub<PremultipliedRgba> for PremultipliedRgba
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, rhs: PremultipliedRgba) -> Self::Output
[src]
Auto Trait Implementations
impl RefUnwindSafe for PremultipliedRgba
impl Send for PremultipliedRgba
impl Sync for PremultipliedRgba
impl Unpin for PremultipliedRgba
impl UnwindSafe for PremultipliedRgba
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,