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 ¶
- Variables
- func GetFullPath(outPath string, xIndex int, yIndex int, xWidth int, extName string) string
- func GetOptions(format formatx.ImageFormat, ratio int) interface{}
- func InitLogger()
- func LoadImage(imagePath string) (img image.Image, imgFormat string, err error)
- func SaveImage(img image.Image, fullPath string, format formatx.ImageFormat, ...) error
- type ImageSlice
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Logger logx.ILogger LogFileName = "ImageSplitter" )
Functions ¶
func GetFullPath ¶
替换路径中的通配符
func GetOptions ¶
func GetOptions(format formatx.ImageFormat, ratio int) interface{}
func InitLogger ¶
func InitLogger()
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)
Click to show internal directories.
Click to hide internal directories.