xmerge

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(images []image.Image, row int, col int, options ...func(*Option)) (image.Image, error)

Merge 拼接图片

func WithColor

func WithColor(v string) func(option *Option)

WithColor 背景颜色

func WithPadding

func WithPadding(v int) func(option *Option)

WithPadding 边距, 1-100

func WithQuality

func WithQuality(v int) func(option *Option)

WithQuality 图片质量, 默认 100, 取值范围 1-100

func WithSpace

func WithSpace(v int) func(option *Option)

WithSpace 图片间距, 1-100

Types

type Option

type Option struct {
	Color   color.Color // 背景颜色
	Padding int         // 上右下左边距
	Space   int         // 图片间距
	Quality int         // 图片质量
}

Option 拼接选项

Jump to

Keyboard shortcuts

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