From 2b1dc69497f0c3a814296e1a368b2f18b6e89847 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 27 Feb 2017 23:53:21 +0900 Subject: [PATCH] graphics: Document bug fix: DrawImage --- image.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/image.go b/image.go index 76387819c..9eaddb045 100644 --- a/image.go +++ b/image.go @@ -177,7 +177,9 @@ func (i *Image) Fill(clr color.Color) error { // ColorM: Identity matrix (that changes no colors) // CompositeMode: CompositeModeSourceOver (regular alpha blending) // -// Note that this function returns immediately and actual drawing is done lazily. +// For drawing, the pixels of the argument image at the time of this call is adopted. +// Even if the argument image is mutated after this call, +// the drawing result is never affected. // // This function is concurrent-safe. func (i *Image) DrawImage(image *Image, options *DrawImageOptions) error {