aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/image/draw/draw_go117.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/image/draw/draw_go117.go')
-rw-r--r--vendor/golang.org/x/image/draw/draw_go117.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/golang.org/x/image/draw/draw_go117.go b/vendor/golang.org/x/image/draw/draw_go117.go
new file mode 100644
index 0000000..fa83648
--- /dev/null
+++ b/vendor/golang.org/x/image/draw/draw_go117.go
@@ -0,0 +1,27 @@
+// Copyright 2021 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build go1.17
+// +build go1.17
+
+package draw
+
+import (
+ "image/draw"
+)
+
+// The package documentation, in draw.go, gives the intent of this package:
+//
+// This package is a superset of and a drop-in replacement for the
+// image/draw package in the standard library.
+//
+// "Drop-in replacement" means that we use type aliases in this file.
+//
+// TODO: move the type aliases to draw.go once Go 1.16 is no longer supported.
+
+// RGBA64Image extends both the Image and image.RGBA64Image interfaces with a
+// SetRGBA64 method to change a single pixel. SetRGBA64 is equivalent to
+// calling Set, but it can avoid allocations from converting concrete color
+// types to the color.Color interface type.
+type RGBA64Image = draw.RGBA64Image