imageutil

package
v0.0.0-...-8e2c2ed Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crop

func Crop(imageFile image.Image, width, height, left, top int) image.Image

func Save

func Save(imageFile image.Image, encodeExt, filePath string) (string, error)

Types

type ImageInfo

type ImageInfo struct {
	Name string
	Ext  string
	Dir  string
}

func Open

func Open(filePath string) (image.Image, *ImageInfo, error)

func (*ImageInfo) Format

func (i *ImageInfo) Format(format string, index, localIndex int) string

type SubImage

type SubImage interface {
	SubImage(r image.Rectangle) image.Image
}

Jump to

Keyboard shortcuts

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