Browse Source

Refactor VidPainter to use high filter quality for color filtering

gavin.chen 1 year ago
parent
commit
cb3056f631
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/view/vid_painter/vid_painter.dart

+ 3 - 1
lib/view/vid_painter/vid_painter.dart

@@ -28,7 +28,9 @@ class VidPainter extends CustomPainter {
         Rect.fromLTWH(0, 0, image.width.toDouble(), image.height.toDouble()),
         Rect.fromLTWH(
             offsetX, offsetY, image.width * scale, image.height * scale),
-        Paint()..colorFilter = ColorFilter.matrix(colorFilterMatrix));
+        Paint()
+          ..colorFilter = ColorFilter.matrix(colorFilterMatrix)
+          ..filterQuality = FilterQuality.high);
     canvas.restore();
   }