Add the ability to choose the interpolation mode when resizing an image by jSdCool · Pull Request #1057 · processing/processing4
Added the ability to choose witch interpolation mode to use when resizing an image.
To do this there is a new overload for PImage.resize() that takes 3 ints (width, height, interpolation mode) there are also 3 new PConstants for the mode they are: NEAREST_NEIGHBOR, BILINEAR, and BICUBIC. They have a value of 0 1 and 2 respectively.
This has been accomplished by utilizing the different interpolation modes provided by the java awt library that was already used for resizing images.