commit | e7cb96979f695f92bdde7ac40937ef6865b33503 | [log] [tgz] |
---|---|---|
author | Zeke Lu <lvzecai@gmail.com> | Fri Sep 02 08:11:42 2022 |
committer | Nigel Tao <nigeltao@golang.org> | Fri Sep 02 08:56:22 2022 |
tree | 5cf3d476c344ce564d2f0ab73c40a7757687e0cd | |
parent | 062f8c9fd539a03d281e76028160d6f6ea545d39 [diff] |
bmp: ignore alpha in Decode when the alpha channel is not supported When the alpha channel is not supported, the alpha component in the original image should be ignored in the decoded image data (that is, set to 0xFF in the decoded data). testdata/yellow_rose-small.png has been modified to pass the test. No new test is added because testdata/yellow_rose-small.bmp has covered this case. Fixes golang/go#54368. Change-Id: Ib46947ec0448340e4313773f3c8534f4dc26bc36 GitHub-Last-Rev: 1eeb39647c0873ae47aab1e3934394e5180de59a GitHub-Pull-Request: golang/image#10 Reviewed-on: https://go-review.googlesource.com/c/image/+/425418 Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
This repository holds supplementary Go image libraries.
The easiest way to install is to run go get -u golang.org/x/image/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/image
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the image repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/image:” in the subject line, so it is easy to find.