From a0cff8961b40dd235093ab19ee195ca6fae3b3d7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 24 Dec 2014 02:08:03 +0900 Subject: [PATCH] Modify docs --- image.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/image.go b/image.go index d3b51d968..eb9992b9a 100644 --- a/image.go +++ b/image.go @@ -131,7 +131,11 @@ func (i *Image) Fill(clr color.Color) (err error) { return } -// DrawImage draws the given image on the receiver (i). +// DrawImage draws the given image on the receiver image. +// This method accepts the parts srcs of the given image at the parts of the destination dsts. +// After determining parts to draw, this applies the geometry matrix geo and the color matrix color. +// +// If you want to draw a whole image simply, use DrawWholeImage. func (i *Image) DrawImage(dsts []image.Rectangle, image *Image, srcs []image.Rectangle, geo GeometryMatrix, color ColorMatrix) (err error) { return i.drawImage(dsts, image.inner, srcs, geo, color) }