Documentation ¶
Index ¶
- func CircleMask(src image.Image) image.Image
- func CreateWhiteBackground(w int, h int) *image.RGBA
- func DrawStringAndSave(img image.Image, infos []*TextBrush) (image.Image, error)
- func GetBase64FromUrl(url string) (string, error)
- func GetFromBase64(base64Img string) (image.Image, error)
- func GetFromBytes(imgBytes []byte) (image.Image, error)
- func MergeImagesHighLow(highImg image.Image, lowImg image.Image) image.Image
- func MiddleCoverCoordinate(background image.Image, coverImg image.Image) image.Rectangle
- func RGBA(img image.Image) *image.RGBA
- func ReplaceWechatMiniProgramQrLogo(qr image.Image, logo image.Image) ([]byte, error)
- func Resize(src image.Image, width, height uint) image.Image
- func TransBackground(src image.Image) image.Image
- type DrawTextInfo
- type TextBrush
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawStringAndSave ¶
func GetFromBase64 ¶
GetFromBase64 base64->image.image
func GetFromBytes ¶
GetFromBytes bytes->image.image
func MergeImagesHighLow ¶
func MiddleCoverCoordinate ¶
MiddleCoverCoordinate 中间覆盖图片到背景图片坐标计算
func ReplaceWechatMiniProgramQrLogo ¶
func Resize ¶
ResizeImg 缩放原始图片 只给width,height,按比例缩放
Types ¶
Click to show internal directories.
Click to hide internal directories.