service

package
v0.0.0-...-060b3f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Brush

type Brush struct {
	FontType  *truetype.Font
	FontSize  float64
	FontColor *image.Uniform
	FontDPI   float64
}

Brush 笔刷 /**

func NewBrush

func NewBrush(FontPath string, FontSize float64, FontColor *image.Uniform, fontDPI float64) (*Brush, error)

NewBrush 实例化笔刷 /**

type DrawService

type DrawService struct {
}

func NewDrawService

func NewDrawService() *DrawService

NewDrawService

func (*DrawService) DrawMultiRectangle

func (service *DrawService) DrawMultiRectangle(base64Image string, rectangles []Rectangle, title string) (string, error)

DrawMultiRectangle 图片上画多个框

type Rectangle

type Rectangle struct {
	X int
	Y int
	W int
	H int
}

Rectangle 矩形结构体 /**

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL