mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 00:45:35 +00:00
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
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user