Image.Interpolation

Values

ValueMeaning
interpolateNearest0
interpolateBilinear1
interpolateCubic2
interpolateTrilinear3

Performs bilinear separately on the two most suited mipmap levels, then linearly interpolates between them. It's slower than INTERPOLATE_BILINEAR, but produces higher quality results, with much less aliasing artifacts. If the image does not have mipmaps, they will be generated and used internally, but no mipmaps will be generated on the resulting image. (Note that if you intend to scale multiple copies of the original image, it's better to call generate_mipmaps on it in advance, to avoid wasting processing power in generating them again and again.) On the other hand, if the image already has mipmaps, they will be used, and a new set will be generated for the resulting image.

Meta