Split up Create banner finction

nmslib.CreateBanner() now calls nmslib.GenRawBanner() for the
majority of processing createbanner now just calls the gen func
and saves the file.

GenRawBanner() returns an image.Image type for more processing by
another function. this will be used for upcoming features.

tests have been updated as needed

upddated go.mod and go.sum
This commit is contained in:
Raum0x2A
2021-05-24 13:11:56 -06:00
parent 94f9b4e15c
commit b41f25646d
4 changed files with 40 additions and 17 deletions

2
go.mod
View File

@@ -3,7 +3,7 @@ module gitlab.com/Raum0x2A/nmslib
go 1.16
require (
github.com/fogleman/gg v1.3.0
github.com/fogleman/gg v1.3.1-0.20210131172831-af4cd580789b
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
golang.org/x/image v0.0.0-20210504121937-7319ad40d33e // indirect
)