moved line in frame-image
This commit is contained in:
parent
5a3d7085a2
commit
eee9c42bb9
1 changed files with 1 additions and 1 deletions
|
@ -22,9 +22,9 @@ func main() {
|
||||||
// Initialize the graphic context on an RGBA image
|
// Initialize the graphic context on an RGBA image
|
||||||
dest := gofpdf.New("P", "mm", "A4", "../font")
|
dest := gofpdf.New("P", "mm", "A4", "../font")
|
||||||
dest.AddPage()
|
dest.AddPage()
|
||||||
|
gc := pdf2d.NewGraphicContext(dest)
|
||||||
// Size of destination image
|
// Size of destination image
|
||||||
dw, dh := dest.GetPageSize()
|
dw, dh := dest.GetPageSize()
|
||||||
gc := pdf2d.NewGraphicContext(dest)
|
|
||||||
// Draw frame
|
// Draw frame
|
||||||
gc.SetFillColor(color.RGBA{0xff, 0xff, 0xff, 0xff})
|
gc.SetFillColor(color.RGBA{0xff, 0xff, 0xff, 0xff})
|
||||||
draw2d.RoundRect(gc, lineWidth, lineWidth, dw-lineWidth, dh-lineWidth, 100, 100)
|
draw2d.RoundRect(gc, lineWidth, lineWidth, dw-lineWidth, dh-lineWidth, 100, 100)
|
||||||
|
|
Loading…
Reference in a new issue