Documentation ¶
Index ¶
- func AddHorizontalLabel(img *image.RGBA, leftX, bottomY int, label, fontPath string, fontSize float64, ...) error
- func AddVerticalBottomAlignLabel(img *image.RGBA, leftX int, label, fontPath string, fontSize float64, ...) error
- func AddVerticalCenterAlignLabel(img *image.RGBA, leftX int, label, fontPath string, fontSize float64, ...) error
- func AddVerticalLabel(img *image.RGBA, leftX, topY int, label, fontPath string, fontSize float64, ...) error
- func AddVerticalTopAlignLabel(img *image.RGBA, leftX int, label, fontPath string, fontSize float64, ...) error
- func GetSize(img *image.RGBA) image.Point
- func HLine(img *image.RGBA, x1, y, x2 int, col color.Color)
- func ImageBase64Encode(img *image.RGBA) string
- func ImageFileBase64Encode(filePath string) string
- func NewImage(width int, height int, backgroundColor color.Color) *image.RGBA
- func NewUniqueFileName(extension string) string
- func PasteImage(img *image.RGBA, imageWidth, imageHeight, leftX, topY int, imagePath string) error
- func Rect(img *image.RGBA, x1, y1, x2, y2, thicknessPx int, col color.Color)
- func Resize(img *image.Image, toWidth, toHeight int)
- func SaveImage(img *image.RGBA, filePath string) error
- func SetBackgroundColor(img *image.RGBA, color image.Image)
- func VLine(img *image.RGBA, x, y1, y2 int, col color.Color)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHorizontalLabel ¶
func AddHorizontalLabel(img *image.RGBA, leftX, bottomY int, label, fontPath string, fontSize float64, fontColor color.Color) error
横書きの文字を入れる
func AddVerticalLabel ¶
func AddVerticalLabel(img *image.RGBA, leftX, topY int, label, fontPath string, fontSize float64, fontColor color.Color) error
縦書きの文字を入れる
func PasteImage ¶
画像を貼り付け
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.