Static ReadonlyAREAArea averaging (box filter): every output pixel is the average of the source pixels it covers. Meant for shrinking
Static ReadonlyBICUBICBicubic (Catmull-Rom) resizing, sharper than bilinear, especially when enlarging
Static ReadonlyBILINEARBilinear resizing (the default). When shrinking, the filter widens with the scale factor, so every source pixel contributes
Static ReadonlyNEAREST_Use Nearest-neighbor resizing
The resampling filters of Image.resize and the other scaling functions:
image.resize({ width: 256, mode: ResizeModes.BICUBIC })