image

package
v3.1.10 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	// contains filtered or unexported fields
}

func NewImage

func NewImage(p *ImageParam) *Image

func (*Image) Draw

func (i *Image) Draw(tokens token.Tokens) error

func (*Image) Encode

func (i *Image) Encode(w io.Writer, ext string) error

type ImageParam

type ImageParam struct {
	BaseWidth          int
	BaseHeight         int
	ForegroundColor    c.RGBA // 文字色
	BackgroundColor    c.RGBA // 背景色
	FontSize           int    // フォントサイズ
	FontFace           font.Face
	EmojiFontFace      font.Face
	EmojiDir           string
	UseEmoji           bool
	UseAnimation       bool
	AnimationLineCount int
	ResizeWidth        int
	ResizeHeight       int
	Delay              int
}

Jump to

Keyboard shortcuts

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