 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func GetImage(src string) (m image.Image, err error)
- func GetQRImage(url string, level qrcode.RecoveryLevel, size int) (image.Image, error)
- func LoadTextType(path string) (*truetype.Font, error)
- func Merge(png draw.Image, merged *os.File) error
- func MergeImage(PNG draw.Image, image image.Image, imageBound image.Point)
- func NewMerged(path string) (*os.File, error)
- func NewPNG(X0 int, Y0 int, X1 int, Y1 int) *image.RGBA
- type DImage
- type DText
- type Pt
- type Rect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQRImage ¶
GetQRImage 获取二维码图像
func MergeImage ¶
MergeImage 合并图片到载体
Types ¶
type DText ¶
type DText struct {
	PNG   draw.Image //合并到的PNG切片,可用image.NewrRGBA设置
	Title string     //文字
	X     int        //横坐标
	Y     int        //纵坐标
	Size  float64
	R     uint8
	G     uint8
	B     uint8
	A     uint8
}
    DText 文字切片
 Click to show internal directories. 
   Click to hide internal directories.