Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas wrapper image
func NewCanvasWith ¶
NewCanvasWith make image with io.Reader
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context text setting
func NewContext ¶
func NewContext(fontfile string, size, dpi, spacing float64, color *image.Uniform) (*Context, error)
NewContext new a text setting
func (*Context) DrawString ¶
DrawString draw string
func (*Context) PointToFixed ¶
PointToFixed converts the given number of points (as in "a 12 point font") into a 26.6 fixed point number of pixels.
Click to show internal directories.
Click to hide internal directories.