mirror of https://github.com/golang/image.git
a5392f068b
If colorUsed is 0, the number of palette is 2 to the power of bit per pixel. testdata/colormap-251.{bmp,png} are added for testing 8-bit format with colorUsed less than 256. testdata/colormap-0.{bmp,png} are added for testing 8-bit format with colorUsed 0. Fixes golang/go#61240 Change-Id: I1a627a570f667874a91c517f4a771e9e97d2af6b Reviewed-on: https://go-review.googlesource.com/c/image/+/508575 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Nigel Tao (INACTIVE; USE @golang.org INSTEAD) <nigeltao@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Nigel Tao <nigeltao@golang.org> |
||
---|---|---|
.. | ||
reader.go | ||
reader_test.go | ||
writer.go | ||
writer_test.go |