Documentation
¶
Index ¶
- func CreateLegend(items []LegendItem) ([]byte, error)
- func EmbedEagleEye(imageA, imageB []byte, scale float64, padding int, position Position) ([]byte, error)
- func EmbedEagleEyeWithDefaults(imageA, imageB []byte) ([]byte, error)
- func TLImgMake(tableName string) ([]byte, error)
- type LegendItem
- type Position
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLegend ¶
func CreateLegend(items []LegendItem) ([]byte, error)
func EmbedEagleEye ¶
func EmbedEagleEye(imageA, imageB []byte, scale float64, padding int, position Position) ([]byte, error)
EmbedEagleEye 将A图片镶嵌在B图片的指定位置作为鹰眼图 imageA: 要镶嵌的图片数据 imageB: 主图片数据 scale: A图片相对于B图片的缩放比例 (0-1之间,例如0.2表示A图片宽度为B图片宽度的20%) padding: 鹰眼图距离边角的内边距(像素) position: 鹰眼图的位置(左上、右上、左下、右下) 返回合成后的图片数据
func EmbedEagleEyeWithDefaults ¶
EmbedEagleEyeWithDefaults 使用默认参数的便捷函数 默认缩放比例为0.2,内边距为10像素,位置为右下角
Types ¶
type LegendItem ¶
Click to show internal directories.
Click to hide internal directories.