pub fn displacement_map(
x_channel_selector: ColorChannel,
y_channel_selector: ColorChannel,
sx: f64,
sy: f64,
src: ImageRef<'_>,
map: ImageRef<'_>,
dest: ImageRefMut<'_>,
)
Expand description
Applies a displacement map.
map
pixels should have a unpremultiplied alpha.src
pixels can have any alpha method.
sx
and sy
indicate canvas scale.
ยงPanics
When src
, map
and dest
have different sizes.