op/paint: note that ImageOp caches image contents

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-03 19:26:37 +02:00
parent f3819d8164
commit 31e12607d7
+4 -1
View File
@@ -16,7 +16,10 @@ import (
// ImageOp sets the material to a section of an
// image.
type ImageOp struct {
// Src is the image.
// Src is the image. Note that once a particular image.Image has
// been used by an ImageOp, updating the image contents might not
// be reflected in the rendered image. Use a new image.Image
// instead.
Src image.Image
// Rect defines the section of Src to use.
Rect image.Rectangle