forked from joejulian/gio
op/paint: note that ImageOp caches image contents
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+4
-1
@@ -16,7 +16,10 @@ import (
|
|||||||
// ImageOp sets the material to a section of an
|
// ImageOp sets the material to a section of an
|
||||||
// image.
|
// image.
|
||||||
type ImageOp struct {
|
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
|
Src image.Image
|
||||||
// Rect defines the section of Src to use.
|
// Rect defines the section of Src to use.
|
||||||
Rect image.Rectangle
|
Rect image.Rectangle
|
||||||
|
|||||||
Reference in New Issue
Block a user