resize
resize
Mojo module 🡭
resize
Box-filter downsampling: shrink a Canvas by an integer factor, each output pixel the average of the corresponding factor x factor block of input pixels.
This is the mechanism behind supersampled anti-aliasing – render
factor times larger than the final size, then downsample() back –
so every output pixel averages factor * factor real source samples.