imghelper

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageHandler added in v0.0.17

type ImageHandler struct {
	In  image.Image
	Fm  string
	Out io.Writer
}

func NewImageHandler added in v0.0.17

func NewImageHandler(src io.Reader, out io.Writer) (h *ImageHandler, err error)

func (*ImageHandler) Clip added in v0.0.17

func (h *ImageHandler) Clip(rect image.Rectangle, quality int) (err error)

图片裁剪

func (*ImageHandler) Scale added in v0.0.17

func (h *ImageHandler) Scale(width, height, quality int) error

缩略图

Jump to

Keyboard shortcuts

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