aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/image/draw/draw_go117.go
blob: fa83648644dc452db09eb2dac2fb1120432ff0c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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