Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Jan 13, 2025
1 parent 2f64596 commit 068003e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/formats/jpeg_encoder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ class JpegEncoder extends Encoder {
final backgroundColor = image.backgroundColor ?? _backgroundColor;
final a = p.aNormalized;
final invA = 1.0 - a;
p..r = (p.r * a + backgroundColor.r * invA).round()
..g = (p.g * a + backgroundColor.r * invA).round()
..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()
..b = (p.b * a + backgroundColor.r * invA).round();
}
final r = p.r.toInt();
final g = p.g.toInt();
Expand Down

0 comments on commit 068003e

Please sign in to comment.