From eee9c42bb90817ae301083f820bd26b07747b682 Mon Sep 17 00:00:00 2001 From: Stani Date: Sat, 27 Jun 2015 17:55:01 +0200 Subject: [PATCH] moved line in frame-image --- pdf2d/samples/frame-image/frame-image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf2d/samples/frame-image/frame-image.go b/pdf2d/samples/frame-image/frame-image.go index 495fd75..a582de7 100644 --- a/pdf2d/samples/frame-image/frame-image.go +++ b/pdf2d/samples/frame-image/frame-image.go @@ -22,9 +22,9 @@ func main() { // Initialize the graphic context on an RGBA image dest := gofpdf.New("P", "mm", "A4", "../font") dest.AddPage() + gc := pdf2d.NewGraphicContext(dest) // Size of destination image dw, dh := dest.GetPageSize() - gc := pdf2d.NewGraphicContext(dest) // Draw frame gc.SetFillColor(color.RGBA{0xff, 0xff, 0xff, 0xff}) draw2d.RoundRect(gc, lineWidth, lineWidth, dw-lineWidth, dh-lineWidth, 100, 100)