add copyright information
This commit is contained in:
parent
089f4efae2
commit
72c9be4ed0
4 changed files with 10 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.)
|
||||
|
|
Loading…
Reference in a new issue