diff --git a/examples/ellipse.go b/examples/ellipse.go index 589e53d..abe6518 100644 --- a/examples/ellipse.go +++ b/examples/ellipse.go @@ -13,5 +13,10 @@ func main() { dc.Fill() dc.Pop() } + if im, err := gg.LoadPNG("examples/gopher.png"); err == nil { + w := im.Bounds().Size().X + h := im.Bounds().Size().Y + dc.DrawImage(im, S/2-w/2, S/2-h/2) + } dc.SavePNG("out.png") }