pub fn apply(
fe: &DisplacementMap,
sx: f32,
sy: f32,
src: ImageRef<'_>,
map: ImageRef<'_>,
dest: ImageRefMut<'_>,
)Expand description
Applies a displacement map.
mappixels should have a unpremultiplied alpha.srcpixels can have any alpha method.
sx and sy indicate canvas scale.
ยงPanics
When src, map and dest have different sizes.