Documentation ¶ Index ¶ func Merge(images []image.Image, row int, col int, options ...func(*Option)) (image.Image, error) func WithColor(v string) func(option *Option) func WithPadding(v int) func(option *Option) func WithQuality(v int) func(option *Option) func WithSpace(v int) func(option *Option) type Option 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 拼接选项 Source Files ¶ View all Source files config.go merge.go option.go Click to show internal directories. Click to hide internal directories.