imgtool

package
v0.0.0-...-4f448d1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFontDPI float64 = 72

Functions

func ConcatImages

func ConcatImages(images ...image.Image) (image.Image, error)

func DrawImageResize

func DrawImageResize(background *image.RGBA, imageToDraw image.Image, height, width, x, y int)

func DrawText

func DrawText(rgba *image.RGBA, option *TextOption) error

func DrawTextOutline

func DrawTextOutline(rgba *image.RGBA, option *TextOption) error

func DrawWhiteImage

func DrawWhiteImage(height int, width int) *image.RGBA

func SaveImage

func SaveImage(img image.Image, outputPath string) error

Types

type Frame

type Frame struct {
	Image             image.Image
	TimePointDuration int
	Count             int
}

func ExtractFrames

func ExtractFrames(inputFile string, vStream vidtool.Stream, imageColumns int, imageRows int) (frames []*Frame)

type TextOption

type TextOption struct {
	X        int
	Y        int
	FontData []byte
	Size     float64
	String   string
}

Jump to

Keyboard shortcuts

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