Documentation ¶
Index ¶
- func ToImage(text string, writer io.Writer, options ...Options) error
- type ImageType
- type Option
- type Options
- func WithBackgroundHexColor(color string) Options
- func WithFontHexColor(color string) Options
- func WithFontReader(reader io.ReadCloser) Options
- func WithFontSize(size float64) Options
- func WithImageType(imageType ImageType) Options
- func WithLineSpacing(spacing float64) Options
- func WithMargin(margin int) Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options func(*Option)
func WithBackgroundHexColor ¶
func WithFontHexColor ¶
func WithFontReader ¶
func WithFontReader(reader io.ReadCloser) Options
func WithFontSize ¶
func WithImageType ¶
func WithLineSpacing ¶
func WithMargin ¶
Click to show internal directories.
Click to hide internal directories.