Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// AddTextMark add text mark
// text water text
// source image source
// format image format
// option see DefaultTextMarkOption
AddTextMark(text string, source io.Reader, format ImageFormat, option *TextMarkOption) ([]byte, error)
}
type ImageFormat ¶
type ImageFormat string
const ( ImageFormatPng ImageFormat = "png" ImageFormatJpeg ImageFormat = "jpeg" ImageFormatJpg ImageFormat = "jpg" ImageFormatGif ImageFormat = "gif" ImageFormatWebp ImageFormat = "webp" )
type TextMarkOption ¶
type TextMarkOption struct {
*Option
// Text font
Font *truetype.Font
// Font size
FontSize float64
// Text color
TextColor color.Color
Dpi float64
}
func DefaultTextMarkOption ¶
func DefaultTextMarkOption() *TextMarkOption
Click to show internal directories.
Click to hide internal directories.

