Documentation ¶
Index ¶
- Variables
- func Call(drawType, imageName string, args ...interface{}) (interface{}, error)
- func Clip(in io.Reader, out io.Writer, wi, hi, x0, y0, x1, y1, quality int) (err error)
- func CreateRoundCircle(src image.Image) (*image.RGBA, error)
- func CreateRoundRect(src image.Image, r int, c *color.RGBA) (*image.RGBA, error)
- func CreateRoundRect1(rd io.Reader, r int, c *color.RGBA) (*image.RGBA, error)
- func CreateRoundRectWithRGBA(src image.Image, r int) (*image.RGBA, error)
- func CreateRoundRectWithoutColor(rd io.Reader, r int) (*image.RGBA, error)
- func Format2GIF(in io.Reader, out io.Writer) error
- func Format2JPEG(in io.Reader, out io.Writer) error
- func Format2PNG(in io.Reader, out io.Writer) error
- func GetRGBA(c int) *color.RGBA
- func LuaOutErr(str string) error
- func Merge(src []io.Reader, dst io.Writer) error
- func Merge6Grid(src []io.Reader, dst io.Writer) error
- func Scale(in io.Reader, out io.Writer, width, height, quality int) (int, int, error)
- type BitMap
- type HEX
- type Point
- type RGB
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = &BitMap{Images: make(map[string]*imgDecode)}
Functions ¶
func Clip ¶
补上缺失的代码 * Clip 图片裁剪 * 入参:图片输入、输出、缩略图宽、缩略图高、Rectangle{Pt(x0, y0), Pt(x1, y1)},精度 * 规则:如果精度为0则精度保持不变 * * 返回:error */
func CreateRoundRect ¶
func CreateRoundRect1 ¶
CreateRoundRect1 创建圆角矩形 r为输入图像 r为圆角半径 color为圆角颜色
func CreateRoundRectWithRGBA ¶
func Merge6Grid ¶
Merge6Grid 6宫格 rule NO1:至少3张图 最多6张图 NO2:第一张大小 60*60 其他大小 28*28 间隔4px 合成图大小102*102 NO3:排列顺序 从左至右 从上到小 再 从右到左 ++| ++| --|
Types ¶
Click to show internal directories.
Click to hide internal directories.