draw

package
v0.0.0-...-d58ffde Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(param Parameters) (*image.RGBA, error)

0.262145631 s/op using parameters: github.com/slainless/digides-ogimage/pkg/ogimage_test.LoadParameters

func NewResizeToFill

func NewResizeToFill(w int, h int) *gift.GIFT

func NewResizeToFit

func NewResizeToFit(w int, h int) *gift.GIFT

Types

type Parameters

type Parameters interface {
	Title() string
	Subtitle() string

	Icon() image.Image
	Background() image.Image

	FontFaceTitle() *truetype.Font
	FontFaceSubtitle() *truetype.Font
}

Jump to

Keyboard shortcuts

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