(index ("image-resize" 0))
(def (sig (procedure " (image-resize pixels width height channels target-width target-height #!key filter region alpha-channel)" (id image-resize))) (p "Takes in raw " (tt "pixels") " (a srfi-4 u8/u16/u32/f32vector) of size " (tt "width") (i (tt "height")) (tt "channels") " and returns raw pixels after resizing. The returned type is the same as " (tt "pixels") "' of size " (tt "target-width") (i (tt "target-height")) (tt "channels") ".") (p (tt "channels") " must be an integer between 0 and 64 and keys are processed as follows.") (ul (li (tt "filter:") " one of " (tt "box") ", " (tt "triangle") ", " (tt "cubicbspline") ", " (tt "catmullrom") " or " (tt "mitchell") ". The default uses " (tt "catmullrom") " for up-sampling and " (tt "mitchell") " for down-sampling.") (li (tt "region:") " a vector of 4 elements " (tt "s0 t0 s1 t1") ", representing the UV-coordinates to use as source image. This can be used to crop the image. These values must be in the range of " (tt "[0, 1]") " and represent the fraction of the input image. " (tt "#(0 0 0.5 1)") ", for example, cuts off the right half of the image.") (li (tt "alpha-channel:") " index of channel which is the alpha channel in the image. supply " (tt "#f") " (default) for no alpha channel.")))
