svgfilters

Function arithmetic_composite

Source
pub fn arithmetic_composite(
    k1: f64,
    k2: f64,
    k3: f64,
    k4: f64,
    src1: ImageRef<'_>,
    src2: ImageRef<'_>,
    dest: ImageRefMut<'_>,
)
Expand description

Performs an arithmetic composition.

  • src1 and src2 image pixels should have a premultiplied alpha.
  • dest image pixels will have a premultiplied alpha.

ยงPanics

When src1, src2 and dest have different sizes.