Documentation ¶
Index ¶
- Variables
- func AddFontWithBuf(fontBuf []byte) error
- func AddFontWithPath(path string) error
- func AddFontWithPathInFs(path string, fsys fs.FS) error
- func AddFount(f *truetype.Font)
- func DrawFont(dst *image.RGBA, src image.Image, x, y float64, label string, fontSize float64)
- func DrawRectangleColor(img *image.RGBA, color color.Color, x, y, wight, high float64)
- func FontLen(str string) float64
- type Alignment
- type Cell
- type CellsLine
- type FlowCurve
- func (p *FlowCurve) AddData(data ...float64) *FlowCurve
- func (p *FlowCurve) DrawImg(x, y float64, img *image.RGBA) error
- func (p *FlowCurve) IsFull() bool
- func (p *FlowCurve) MinSize() *Size
- func (p *FlowCurve) SetBgColor(color color.Color) *FlowCurve
- func (p *FlowCurve) SetFgColor(color color.Color) *FlowCurve
- func (p *FlowCurve) SetFull(i bool) *FlowCurve
- func (p *FlowCurve) Size() *Size
- type FlowGraph
- type FlowHistogram
- func (p *FlowHistogram) AddData(data ...float64) *FlowHistogram
- func (p *FlowHistogram) DrawImg(x, y float64, img *image.RGBA) error
- func (p *FlowHistogram) IsFull() bool
- func (p *FlowHistogram) MinSize() *Size
- func (p *FlowHistogram) SetBgColor(color color.Color) *FlowHistogram
- func (p *FlowHistogram) SetFgColor(color color.Color) *FlowHistogram
- func (p *FlowHistogram) SetFull(i bool) *FlowHistogram
- func (p *FlowHistogram) Size() *Size
- type FlowRate
- func (p *FlowRate) AddData(data ...float64) *FlowRate
- func (p *FlowRate) DrawImg(x, y float64, img *image.RGBA) error
- func (p *FlowRate) IsFull() bool
- func (p *FlowRate) MinSize() *Size
- func (p *FlowRate) SetBgColor(color color.Color) *FlowRate
- func (p *FlowRate) SetFgColor(color color.Color) *FlowRate
- func (p *FlowRate) SetFull(i bool) *FlowRate
- func (p *FlowRate) Size() *Size
- type Line
- type LineOne
- type LineTxt
- func (p *LineTxt) DrawImg(x, y float64, img *image.RGBA) error
- func (p *LineTxt) IsFull() bool
- func (p *LineTxt) MinSize() *Size
- func (p *LineTxt) SetAlignment(alignment Alignment) *LineTxt
- func (p *LineTxt) SetBgColor(color color.Color) *LineTxt
- func (p *LineTxt) SetFgColor(color color.Color) *LineTxt
- func (p *LineTxt) SetFontSize(fontSize float64) *LineTxt
- func (p *LineTxt) SetText(format string, a ...interface{}) *LineTxt
- func (p *LineTxt) Size() *Size
- type Rows
- type Size
- type Table
- func (p *Table) AddLine(lines ...Line) *Table
- func (p *Table) SetSteganography(data interface{}) *Table
- func (p *Table) SetWmk(data string) *Table
- func (p *Table) ToBmp() (*bytes.Buffer, error)
- func (p *Table) ToImg() (*bytes.Buffer, error)
- func (p *Table) ToJpg() (*bytes.Buffer, error)
- func (p *Table) ToPng() (*bytes.Buffer, error)
- func (p *Table) ToTiff() (*bytes.Buffer, error)
- func (p *Table) ToWebp() (*bytes.Buffer, error)
- type Text
- func (p *Text) DrawImg(x, y float64, img *image.RGBA) error
- func (p *Text) MinSize() *Size
- func (p *Text) SetAlignment(alignment Alignment) *Text
- func (p *Text) SetBgColor(color color.Color) *Text
- func (p *Text) SetFgColor(color color.Color) *Text
- func (p *Text) SetFontSize(fontSize float64) *Text
- func (p *Text) SetText(format string, a ...interface{}) *Text
- func (p *Text) Size() *Size
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Green = drawing.Color{R: 126, G: 190, B: 171, A: 255} Yellow = drawing.Color{R: 243, G: 191, B: 136, A: 255} Red = drawing.Color{R: 240, G: 145, B: 153, A: 255} Gray = drawing.Color{R: 243, G: 243, B: 242, A: 255} Purple = drawing.Color{R: 112, G: 88, B: 163, A: 255} )
View Source
var FontList []*truetype.Font
Functions ¶
func AddFontWithBuf ¶
func AddFontWithPath ¶
func DrawRectangleColor ¶
Types ¶
type FlowCurve ¶
type FlowCurve struct {
// contains filtered or unexported fields
}
func NewFlowCurve ¶
func NewFlowCurve() *FlowCurve
type FlowHistogram ¶
type FlowHistogram struct {
// contains filtered or unexported fields
}
func NewFlowHistogram ¶
func NewFlowHistogram() *FlowHistogram
func (*FlowHistogram) AddData ¶
func (p *FlowHistogram) AddData(data ...float64) *FlowHistogram
func (*FlowHistogram) DrawImg ¶
func (p *FlowHistogram) DrawImg(x, y float64, img *image.RGBA) error
func (*FlowHistogram) IsFull ¶
func (p *FlowHistogram) IsFull() bool
func (*FlowHistogram) MinSize ¶
func (p *FlowHistogram) MinSize() *Size
func (*FlowHistogram) SetBgColor ¶
func (p *FlowHistogram) SetBgColor(color color.Color) *FlowHistogram
func (*FlowHistogram) SetFgColor ¶
func (p *FlowHistogram) SetFgColor(color color.Color) *FlowHistogram
func (*FlowHistogram) SetFull ¶
func (p *FlowHistogram) SetFull(i bool) *FlowHistogram
func (*FlowHistogram) Size ¶
func (p *FlowHistogram) Size() *Size
type FlowRate ¶
type FlowRate struct {
// contains filtered or unexported fields
}
func NewFlowRate ¶
func NewFlowRate() *FlowRate
type LineTxt ¶
type LineTxt struct {
// contains filtered or unexported fields
}
func NewLineText ¶
func NewLineText() *LineTxt
func (*LineTxt) SetAlignment ¶
func (*LineTxt) SetFontSize ¶
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func (*Text) SetAlignment ¶
func (*Text) SetFontSize ¶
Click to show internal directories.
Click to hide internal directories.