From 5e6e015a82110865e59d6ade17842116181e2cf7 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Fri, 19 Feb 2016 18:33:15 -0500 Subject: [PATCH] Use draw.Over in DrawImage --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index bda1d23..2701fc6 100644 --- a/context.go +++ b/context.go @@ -308,7 +308,7 @@ func (dc *Context) DrawCircle(x, y, r float64) { func (dc *Context) DrawImage(im image.Image, x, y int) { p := image.Pt(x, y) r := image.Rectangle{p, p.Add(im.Bounds().Size())} - draw.Draw(dc.im, r, im, image.ZP, draw.Src) + draw.Draw(dc.im, r, im, image.ZP, draw.Over) } // Text Functions