aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2021-04-18 13:38:34 +1000
committerNigel Tao <nigeltao@golang.org>2021-06-18 23:57:09 +0000
commit86743e7d8652c316b5f77a84ffc83244ee10a41b (patch)
tree95eb6875dcced583cc0bf98bfb036e363e126df3 /doc
parent9401172166ee6ac64a5a74b4a8f2aa6d3f936ea1 (diff)
downloadgo-86743e7d8652c316b5f77a84ffc83244ee10a41b.tar.gz
go-86743e7d8652c316b5f77a84ffc83244ee10a41b.zip
image: add RGBA64Image interface
The new RGBA64At method is equivalent to the existing At method (and the new SetRGBA64 method is equivalent to the existing Set method in the image/draw package), but they can avoid allocations from converting concrete color types to the color.Color interface type. Also update api/go1.17.txt and doc/go1.17.html Fixes #44808 Change-Id: I8671f3144512b1200fa373840ed6729a5d61bc35 Reviewed-on: https://go-review.googlesource.com/c/go/+/311129 Trust: Nigel Tao <nigeltao@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.17.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html
index 6424709453..9452651295 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -693,6 +693,19 @@ func Foo() bool {
</dd>
</dl><!-- go/format -->
+<dl id="image"><dt><a href="/pkg/image/">image</a></dt>
+ <dd>
+ <p><!-- CL 311129 -->
+ The concrete image types (<code>RGBA</code>, <code>Gray16</code> and so on)
+ now implement a new <a href="/pkg/image/#RGBA64Image"><code>RGBA64Image</code></a>
+ interface. Those concrete types, other than the chroma-subsampling
+ related <code>YCbCr</code> and <code>NYCbCrA</code>, also now implement
+ <a href="/pkg/image/draw/#RGBA64Image"><code>draw.RGBA64Image</code></a>, a
+ new interface in the <code>image/draw</code> package.
+ </p>
+ </dd>
+</dl><!-- image -->
+
<dl id="io/fs"><dt><a href="/pkg/io/fs/">io/fs</a></dt>
<dd>
<p><!-- CL 293649 -->