fix imageCount
This commit is contained in:
parent
33f067e4dd
commit
4c03f51911
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,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
|
||||
tp := "PNG" // "JPG", "JPEG", "PNG" and "GIF"
|
||||
b := &bytes.Buffer{}
|
||||
png.Encode(b, image)
|
||||
|
|
Loading…
Reference in a new issue