Versions in this module Expand all Collapse all v0 v0.0.7 Apr 10, 2019 Changes in this version + var BSpline = ResampleFilter + var Bartlett = ResampleFilter + var Blackman = ResampleFilter + var Box = ResampleFilter + var CatmullRom = ResampleFilter + var Core cmdMap + var Cosine = ResampleFilter + var FontsHome string + var FontsShare = "/usr/share/fonts" + var Gaussian = ResampleFilter + var Hamming = ResampleFilter + var Hann = ResampleFilter + var Hermite = ResampleFilter + var Lanczos = ResampleFilter + var Linear = canvas.Linear + var MitchellNetravali = ResampleFilter + var NearestNeighbor = canvas.NearestNeighbor + var ResampleFilters = []ResampleFilter + var Welch = ResampleFilter + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func FontDirs(dirs string) []string + func MustAsset(name string) []byte + func NewCommand(group, tag, instruction string, prio int, ffn flagSetFunc, cfn cmdFunc, ...) *command + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + func ToColor(model, value string) color.Color + func WriteText(cv canvas.Canvas, o *Options) string + type AlphaS []string + func (a AlphaS) Len() int + func (a AlphaS) Less(i, j int) bool + func (a AlphaS) Swap(i, j int) + type BlendFunc = canvas.BlendFunc + type ColorRGB struct + B float64 + G float64 + R float64 + func (c ColorRGB) RGBA() (r, g, b, a uint32) + type Fonts struct + var LF *Fonts + func NewFonts() *Fonts + func (f *Fonts) Get(k string) *truetype.Font + func (f *Fonts) List() []string + func (f *Fonts) Set(name string, ft *truetype.Font) bool + func (f *Fonts) SetByte(name string, fb []byte) bool + func (f *Fonts) SetDir(paths ...string) error + func (f *Fonts) SetPath(name, path string) bool + func (f *Fonts) TextFont(k string, height, lineHeight float64, a align, c color.Color, o float64, ...) *TextFont + type Options struct + var CoreOptions *Options + type Position = canvas.BlendPosition + type RGBA164 = canvas.RGBA164 + type ResampleFilter = canvas.ResampleFilter + type Text struct + func NewText(msg string, bw, bh int, lx, ly float64, font string, fontSize float64, ...) *Text + func OptionsToText(o *Options) *Text + func (t *Text) DrawString(i draw.Image) + func (t *Text) DrawStringAnchored(i draw.Image) + func (t *Text) DrawStringWrapped(i draw.Image) + func (t *Text) Scrive(d draw.Image) + func (t *Text) String() string + type TextBox struct + H int + W int + func NewTextBox(bw, bh int) *TextBox + func (t *TextBox) Box(d draw.Image) draw.Image + type TextFont struct + func (t *TextFont) MeasureString(s string) (w, h float64) + type TextLocation struct + X float64 + Y float64 + func NewTextLocation(x, y float64) *TextLocation + func (t *TextLocation) Locate() fixed.Point26_6 + func (t *TextLocation) Point() image.Point