pub fn resize(
photon_img: &PhotonImage,
width: u32,
height: u32,
sampling_filter: SamplingFilter
) -> PhotonImage
Expand description
Resize an image.
Arguments
img
- A PhotonImage.width
- New width.height
- New height.sampling_filter
- Nearest = 1, Triangle = 2, CatmullRom = 3, Gaussian = 4, Lanczos3 = 5