From 29c9b06dabc26a6bdb4048e9d5b9b3c95caa8021 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 14 May 2020 13:31:21 +0200 Subject: [PATCH] op/paint: document ImageOp gotcha Signed-off-by: Elias Naur --- op/paint/paint.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/op/paint/paint.go b/op/paint/paint.go index 4c247d68..d9ece850 100644 --- a/op/paint/paint.go +++ b/op/paint/paint.go @@ -15,6 +15,9 @@ import ( ) // ImageOp sets the brush to an image. +// +// Note: the ImageOp may keep a reference to the backing image. +// See NewImageOp for details. type ImageOp struct { // Rect is the section if the backing image to use. Rect image.Rectangle