Documentation
¶
Index ¶
- func Create(size image.Rectangle, textColor color.RGBA, text string, border bool, ...) *image.RGBA
- func CreateWithFont(size image.Rectangle, fontFace *truetype.Font, textColor color.RGBA, ...) *image.RGBA
- func Crosshair(img *image.RGBA)
- func DrawBorder(img *image.RGBA, borderWidth int, col color.RGBA)
- func DrawText(c *freetype.Context, x int, y int, text string) error
- func PrepareFreetypeContext(dst *image.RGBA, src image.Image, font FontDescription) (*freetype.Context, int)
- type FontDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWithFont ¶
func PrepareFreetypeContext ¶
func PrepareFreetypeContext(dst *image.RGBA, src image.Image, font FontDescription) (*freetype.Context, int)
PrepareFreetypeContext sets up all the bits and bobs related to drawing text on the image
Types ¶
Click to show internal directories.
Click to hide internal directories.