Documentation ¶
Index ¶
- func CircleImage(src image.Image) image.Image
- func CreateWhiteBackgroundImg(w, h int) *image.RGBA
- func DrawStringOnImageAndSave(img image.Image, infos []*TextBrush) (image.Image, error)
- func GetImageFromBase64(base64Img string) (image.Image, error)
- func GetImageFromBytes(imgBytes []byte) (image.Image, error)
- func GetUrlBase64(url string) (string, error)
- func Image2RGBA(img image.Image) *image.RGBA
- func MergeImagesHighLow(highImg, lowImg image.Image) image.Image
- func MiddleCoverCoordinate(background, coverImg image.Image) image.Rectangle
- func ResizeImg(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 GetImageFromBase64 ¶
GetImageFromBase64 base64->image.image
func GetImageFromBytes ¶
GetImageFromBytes bytes->image.image
func GetUrlBase64 ¶
func MiddleCoverCoordinate ¶
MiddleCoverCoordinate 中间覆盖图片到背景图片坐标计算
Types ¶
Click to show internal directories.
Click to hide internal directories.