Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpGet = http.Get
Functions ¶
This section is empty.
Types ¶
type BackgroundMaker ¶
type Context ¶
type Context interface {
Image() image.Image
DrawString(s string, x, y float64)
DrawStringAnchored(s string, x, y, ax, ay float64)
DrawStringWrapped(s string, x, y, ax, ay, width, lineSpacing float64, align gg.Align)
LoadFontFace(path string, points float64) error
MeasureString(s string) (w, h float64)
MeasureMultilineString(s string, lineSpacing float64) (w, h float64)
SetColor(c color.Color)
WordWrap(s string, w float64) []string
}
type ContextMaker ¶
var NewContext ContextMaker = func(i image.Image) Context { return gg.NewContextForImage(i) }
type FontFinder ¶ added in v0.3.1
var FindFont FontFinder = findfont.Find
type ImageEncoder ¶
var EncodeImage ImageEncoder = png.Encode
Click to show internal directories.
Click to hide internal directories.