We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae76261 commit ea9b88eCopy full SHA for ea9b88e
lib/src/image/image.dart
@@ -927,17 +927,18 @@ class Image extends Iterable<Pixel> {
927
}
928
929
930
- int _numPixelColors(Format format) => format == Format.uint1
+ int _numPixelColors(
931
+ Format
932
+ format) => /*format == Format.uint1
933
? 2
934
: format == Format.uint2
935
? 4
936
: format == Format.uint4
937
? 16
938
: format == Format.uint8
939
? 256
- : format == Format.uint16
- ? 65536
940
- : 0;
+ :*/
941
+ format == Format.uint16 ? 65536 : 256;
942
943
Palette? _createPalette(
944
Format format, Format paletteFormat, int numChannels) {
0 commit comments