op/paint: document ImageOp gotcha

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-05-14 13:31:21 +02:00
parent b7ba809517
commit 29c9b06dab
+3
View File
@@ -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