pub fn blit_with<D, S>(
dest: impl SurfaceMut<D>,
src: impl Surface<S>,
transforms: &[Transform],
func: impl FnMut(&mut D, &S, Point),
)Expand description
Blit part of one surface to another (generalized function).
You can use sub_surface or offset_surface functions to limit the copied area.
f is called for each pair of values, the last argument is the value’s source position.
The transforms are done in order.