gotextimgdistro

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockyFlip7

func BlockyFlip7(srcImg *image.Gray, blockWidth, blockHeight int) (dstImg *image.Gray)

func CosHShift

func CosHShift(srcImg *image.Gray, initRadian, stepRadian, ampValue float64) (dstImg *image.Gray)

func CosVShift

func CosVShift(srcImg *image.Gray, initRadian, stepRadian, ampValue float64) (dstImg *image.Gray)

func Invert added in v0.0.2

func Invert(srcImg *image.Gray) (dstImg *image.Gray)

func TanHShift added in v0.0.2

func TanHShift(srcImg *image.Gray, initRadian, stepRadian, ampValue float64) (dstImg *image.Gray)

func TanVShift added in v0.0.2

func TanVShift(srcImg *image.Gray, initRadian, stepRadian, ampValue float64) (dstImg *image.Gray)

Types

type BasicTextImageMaker added in v0.0.2

type BasicTextImageMaker struct {
	// contains filtered or unexported fields
}

func NewBasicTextImageMaker added in v0.0.2

func NewBasicTextImageMaker(fontFaceRef font.Face, imageWidth, imageHeight int) (maker *BasicTextImageMaker)

func (*BasicTextImageMaker) NewTextImage added in v0.0.2

func (maker *BasicTextImageMaker) NewTextImage(t string) (dst *image.Gray, bearingX, bearingY fixed.Int26_6, err error)

type OpenTypeTextImageMaker added in v0.0.2

type OpenTypeTextImageMaker struct {
	// contains filtered or unexported fields
}

func NewOpenTypeTextImageMaker added in v0.0.2

func NewOpenTypeTextImageMaker(fontRef *opentype.Font, imageWidth, imageHeight int, fontSize float64) (maker *OpenTypeTextImageMaker)

func NewOpenTypeTextImageMakerWithFontData added in v0.0.2

func NewOpenTypeTextImageMakerWithFontData(fontData []byte, imageWidth, imageHeight int, fontSize float64) (maker *OpenTypeTextImageMaker, err error)

func (*OpenTypeTextImageMaker) NewTextImage added in v0.0.2

func (maker *OpenTypeTextImageMaker) NewTextImage(t string) (dst *image.Gray, bearingX, bearingY fixed.Int26_6, err error)

type TextImageMaker

type TextImageMaker interface {
	NewTextImage(t string) (dst *image.Gray, bearingX, bearingY fixed.Int26_6, err error)
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL