Documentation ¶
Index ¶
- Variables
- func ImageDrawRGBA(img *image.RGBA, imgcode image.Image, x, y int)
- func ImageRGBA(width, height int) *image.RGBA
- func OpenImage(in io.Reader, ft FileType) (image.Image, error)
- func OpenImageFile(path string) (image.Image, error)
- func OutWaterMark(oldPic io.Reader, waterMark io.Reader, out io.Writer, ft FileType) error
- func TextToImage(text string, fontSize float64, fontFile string, fontColor color.Color) (image.Image, error)
- func TextToImageFile(text string, fontSize float64, fontFile string, fontColor color.Color, ...) error
- func WaterMarkFile(inputFile, watermarkFile, newFile string) error
- func WaterMarkImage(img image.Image, watermark image.Image) image.Image
- func WriteImage(img image.Image, ft FileType, out io.Writer) error
- func WriteImageFile(path string, img image.Image) error
- type FileType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultLinuxFontFile = "/usr/share/fonts/truetype/freefont/FreeMono.ttf"
)
Functions ¶
func OpenImageFile ¶
OpenImage open Image with file type
func OutWaterMark ¶
WaterMark
func TextToImage ¶
func TextToImageFile ¶
func WaterMarkFile ¶
WaterMarkJpgFile
Types ¶
Click to show internal directories.
Click to hide internal directories.