core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Create on 2022/6/26 @author xuzhuoxi

Create on 2022/6/26 @author xuzhuoxi

Create on 2022/6/26 @author xuzhuoxi

Create on 2022/6/26 @author xuzhuoxi

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger      logx.ILogger
	LogFileName = "ImageSplitter"
)

Functions

func GetFullPath

func GetFullPath(outPath string, xIndex int, yIndex int, xWidth int, extName string) string

替换路径中的通配符

func GetOptions

func GetOptions(format formatx.ImageFormat, ratio int) interface{}

func InitLogger

func InitLogger()

func LoadImage

func LoadImage(imagePath string) (img image.Image, imgFormat string, err error)

func SaveImage

func SaveImage(img image.Image, fullPath string, format formatx.ImageFormat, options interface{}) error

Types

type ImageSlice

type ImageSlice struct {
	FullPath string
	SrcPoint image.Point
	Format   formatx.ImageFormat
	Options  interface{}
}

func ParseSlice

func ParseSlice(ctx *env.SplitContext) (slices []*ImageSlice)

Jump to

Keyboard shortcuts

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