getPixelInterpolate method
Get the pixel using the given interpolation
type for non-integer pixel
coordinates.
Implementation
int getPixelInterpolate(num fx, num fy,
[Interpolation interpolation = Interpolation.linear]) {
if (interpolation == Interpolation.cubic) {
return getPixelCubic(fx, fy);
} else if (interpolation == Interpolation.linear) {
return getPixelLinear(fx, fy);
}
return getPixelSafe(fx.toInt(), fy.toInt());
}