[mob][photos] Use bilinear interpolation for clip

This commit is contained in:
laurenspriem
2024-08-23 10:35:26 +02:00
parent 89effbabc1
commit a328189891

View File

@@ -231,7 +231,7 @@ Future<Float32List> preprocessImageClip(
const int blueOff = 2 * requiredHeight * requiredWidth;
for (var h = 0 + heightOffset; h < scaledHeight - heightOffset; h++) {
for (var w = 0 + widthOffset; w < scaledWidth - widthOffset; w++) {
final Color pixel = _getPixelBicubic(
final Color pixel = _getPixelBilinear(
w / scale,
h / scale,
image,