Documentation ¶
Overview ¶
Package libseal
@author: xwc1125
Package libseal ¶
@author: xwc1125
Index ¶
- func BuildCompanySeal(companyName string, code string, fontFamily string) (*gg.Context, error)
- func BuildPersonalSeal(userName string, fontFamily string) (*gg.Context, error)
- func DrawCircle(dc *gg.Context, circle *Circle)
- func DrawFont4Arc(dc *gg.Context, drawFont *DrawFont, point Point, circleRadius float64, ...) error
- func DrawStar(dc *gg.Context, star *Star)
- func GetCurrentDirectory() string
- type Circle
- type DrawFont
- type Point
- type Star
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCompanySeal ¶
BuildCompanySeal 生成印章图片,并保存到指定路径 @param conf 配置文件
func BuildPersonalSeal ¶
BuildPersonalSeal 生成私人印章图片,并保存到指定路径 @param lineSize 边线宽度 @param font 字体对象 @param addString 追加字符
func DrawCircle ¶
DrawCircle 画圆 如果lineSize=0时,那么使用默认线宽=直径的1/35
Types ¶
Click to show internal directories.
Click to hide internal directories.