tools

package
v0.0.0-...-e57dd20 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToImage

func BytesToImage(data []byte) (image.Image, string, error)

BytesToImage receive image []byte, return image.Image

func Cover

func Cover(top image.Image, bg image.Image, x0, y0, offsetX, offsetY int) *image.RGBA

Cover 能将一张图覆盖到另一张的指定位置

func Cut

func Cut(img image.Image, x0 int, y0 int, x1 int, y1 int) (image.Image, error)

func ReadImage

func ReadImage(filePath string) (image.Image, error)

func Resize

func Resize(img image.Image, width int, height int) image.Image

Resize 等比例变化

Types

This section is empty.

Jump to

Keyboard shortcuts

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