Skip to content

Commit

Permalink
Fix unit test error
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed Mar 29, 2024
1 parent ae76261 commit ea9b88e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/src/image/image.dart
Original file line number Diff line number Diff line change
Expand Up @@ -927,17 +927,18 @@ class Image extends Iterable<Pixel> {
}
}

int _numPixelColors(Format format) => format == Format.uint1
int _numPixelColors(
Format
format) => /*format == Format.uint1
? 2
: format == Format.uint2
? 4
: format == Format.uint4
? 16
: format == Format.uint8
? 256
: format == Format.uint16
? 65536
: 0;
:*/
format == Format.uint16 ? 65536 : 256;

Palette? _createPalette(
Format format, Format paletteFormat, int numChannels) {
Expand Down

0 comments on commit ea9b88e

Please sign in to comment.