InterpolationType

enum InterpolationType : Enum<InterpolationType>

When an image is resized, we need an interpolation algorithm to draw newly created pixels between old pixels.

Conceptually the image is viewed as a set of infinitely small point color samples which have value only at the centers of integer coordinate pixels and the space between those pixel centers is filled with linear ramps of colors that connect adjacent discrete samples in a straight line.

Entries

NEAREST
Link copied to clipboard

The color sample of the nearest neighboring integer coordinate sample in the image is used.

BICUBIC
Link copied to clipboard

The color samples of 9 nearby integer coordinate samples in the image are interpolated using a cubic function in both ``X`` and ``Y`` to produce a color sample.

BILINEAR
Link copied to clipboard

The color samples of the 4 nearest neighboring integer coordinate samples in the image are interpolated linearly to produce a color sample.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int