We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f64596 commit 068003eCopy full SHA for 068003e
lib/src/formats/jpeg_encoder.dart
@@ -160,9 +160,10 @@ class JpegEncoder extends Encoder {
160
final backgroundColor = image.backgroundColor ?? _backgroundColor;
161
final a = p.aNormalized;
162
final invA = 1.0 - a;
163
- p..r = (p.r * a + backgroundColor.r * invA).round()
164
- ..g = (p.g * a + backgroundColor.r * invA).round()
165
- ..b = (p.b * a + backgroundColor.r * invA).round();
+ p
+ ..r = (p.r * a + backgroundColor.r * invA).round()
+ ..g = (p.g * a + backgroundColor.r * invA).round()
166
+ ..b = (p.b * a + backgroundColor.r * invA).round();
167
}
168
final r = p.r.toInt();
169
final g = p.g.toInt();
0 commit comments