# README
image
# Packages
No description provided by the author
# Functions
Base64ToBuffer base64 -> buffer.
Base64ToFile base64 -> file.
BufferToImageBuffer buffer-> ImageBuff(图片裁剪,代码接上面).
No description provided by the author
Bytes2file 直接转 multipart.File.
No description provided by the author
Cm2Inch 厘米转英寸.
Cm2Pix 厘米转像素.
No description provided by the author
ColorToRGB 颜色代码转换为RGB input int output int red, green, blue.
No description provided by the author
No description provided by the author
FileToBase64 imgFile -> base64.
No description provided by the author
No description provided by the author
GetRemoteWatermarkFileData 获取远程水印图片文件数据.
Inch2Cm 英寸转厘米.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewWatermark 设置水印的相关参数。 path为水印文件的路径; padding为水印在目标不图像上的留白大小; pos水印的位置。.
No description provided by the author
No description provided by the author
No description provided by the author
Pix2Cm 像素转厘米.
ReaderAt2file 直接转 multipart.File.
ReadRemoteWatermarkFile 读取远程水印图片文件.
No description provided by the author
No description provided by the author
No description provided by the author
TextToImage textContent string, fontFile string, pngBgImgPath string, width int, height int.
ToBase64 img -> base64(代码接上面).
ToFile img -> file(代码接上面).
# Constants
水印的位置.
水印的位置.
水印的位置.
水印的位置.
水印的位置.
No description provided by the author
No description provided by the author
# Variables
DefaultHTTPSystemOpen 水印文件默认打开方式.
DefaultWatermarkFileDownloadClient 默认水印文件下载客户端.
DefaultWatermarkFileDownloadOptions 默认水印文件下载选项.
ErrInvalidPos 水印位置不正确.
ErrUnsupportedImageType 图片格式不支持.
ErrUnsupportedWatermarkType 水印图片格式不支持.
WatermarkOpen 水印文件打开方式.
# Structs
No description provided by the author
No description provided by the author
Watermark 用于给图片添加水印功能。 目前支持gif,jpeg和png三种图片格式。 若是gif图片,则只取图片的第一帧;png支持透明背景。.
No description provided by the author
WatermarkOptions 水印选项.