diff --git a/draw2dpdf/fileutil.go b/draw2dpdf/fileutil.go index c3c8e66..349545d 100644 --- a/draw2dpdf/fileutil.go +++ b/draw2dpdf/fileutil.go @@ -1,3 +1,6 @@ +// Copyright 2015 The draw2d Authors. All rights reserved. +// created: 26/06/2015 by Stani Michiels + package draw2dpdf import "github.com/jung-kurt/gofpdf" diff --git a/draw2dpdf/gc.go b/draw2dpdf/gc.go index 8c7c3aa..e1844fb 100644 --- a/draw2dpdf/gc.go +++ b/draw2dpdf/gc.go @@ -1,6 +1,6 @@ // Copyright 2015 The draw2d Authors. All rights reserved. // created: 26/06/2015 by Stani Michiels -// TODO: fonts, dpi +// TODO: dashed line package draw2dpdf @@ -88,7 +88,7 @@ func NewGraphicContext(pdf *gofpdf.Fpdf) *GraphicContext { // TODO: add type (tp) as parameter to argument list? func (gc *GraphicContext) DrawImage(image image.Image) { name := strconv.Itoa(int(imageCount)) - imageCount += 1 + imageCount++ tp := "PNG" // "JPG", "JPEG", "PNG" and "GIF" b := &bytes.Buffer{} png.Encode(b, image) diff --git a/draw2dpdf/samples_test.go b/draw2dpdf/samples_test.go index ac6a4ce..8da8b8d 100644 --- a/draw2dpdf/samples_test.go +++ b/draw2dpdf/samples_test.go @@ -1,3 +1,5 @@ +// Copyright 2015 The draw2d Authors. All rights reserved. +// created: 26/06/2015 by Stani Michiels // See also test_test.go package draw2dpdf_test diff --git a/draw2dpdf/test_test.go b/draw2dpdf/test_test.go index 88e1f43..801ff36 100644 --- a/draw2dpdf/test_test.go +++ b/draw2dpdf/test_test.go @@ -1,3 +1,6 @@ +// Copyright 2015 The draw2d Authors. All rights reserved. +// created: 26/06/2015 by Stani Michiels + // Package draw2dpdf_test gives test coverage with the command: // go test -cover ./... | grep -v "no test" // (It should be run from its parent draw2d directory.)