Documentation ¶
Index ¶
- Variables
- func CheckExtension(srcPath string) (ext string, err error)
- func Cut(img image.Image, target, ext string) (err error)
- func GetBlockSize(source, ext string) (height, width int, err error)
- func GetLevelSize(width, height, level int) (levelWidth, levelHeight int, err error)
- func GetMaxLevel(width, height int) (max_level int)
- func IsPower(n int) bool
- func IsSquare(image_path string) bool
- func Tile(img image.Image) (imgs [][]image.Image, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Carpet = new(carpet)
View Source
var Matrix = new(matrix)
View Source
var Single = new(single)
View Source
var Square = new(square)
Functions ¶
func CheckExtension ¶ added in v1.4.0
检查图片类型
params: source_path: 源文件路径 returns: extension: 图片扩展名 err: error message
func GetLevelSize ¶ added in v1.4.0
计算某个级别的逻辑大图尺寸
func GetMaxLevel ¶ added in v1.4.0
计算瓦片的最大级别
params: width: 图像宽度 height: 图像高度 returns: max_level: 瓦片的最大级别
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.