moved line in frame-image

This commit is contained in:
Stani 2015-06-27 17:55:01 +02:00
parent 5a3d7085a2
commit eee9c42bb9

View file

@ -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)