Skip to content

Commit 491771c

Browse files
dmitshurgopherbot
authored andcommitted
draw: merge draw_go117.go into draw.go
This can be done as Go 1.21 and 1.20 are the supported versions by now, and Go 1.16 is long since unsupported. Change-Id: Ib90f796d6c38dbb9ffd99d56faf344ee9784f9bc Reviewed-on: https://go-review.googlesource.com/c/image/+/526896 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Nigel Tao (INACTIVE; USE @golang.org INSTEAD) <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]> Reviewed-by: Nigel Tao <[email protected]>
1 parent 4aa0222 commit 491771c

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

draw/draw.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ func (floydSteinberg) Draw(dst Image, r image.Rectangle, src image.Image, sp ima
4747
// Image is an image.Image with a Set method to change a single pixel.
4848
type Image = draw.Image
4949

50+
// RGBA64Image extends both the Image and image.RGBA64Image interfaces with a
51+
// SetRGBA64 method to change a single pixel. SetRGBA64 is equivalent to
52+
// calling Set, but it can avoid allocations from converting concrete color
53+
// types to the color.Color interface type.
54+
type RGBA64Image = draw.RGBA64Image
55+
5056
// Op is a Porter-Duff compositing operator.
5157
type Op = draw.Op
5258

draw/draw_go117.go

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)