image

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JPG = ImageFormat("jpg")
	PNG = ImageFormat("png")
	GIF = ImageFormat("gif")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

func New

func New(rand *core.Rand, global *provider.Global) *Image

func (*Image) Base64

func (i *Image) Base64(width int, height int, format ImageFormat) (string, error)

the image content will be just white blank image width and height should be less than or eq 3840px

func (*Image) Binary

func (i *Image) Binary(width int, height int, format ImageFormat) ([]byte, error)

the image content will be just white blank image width and height should be less than or eq 3840px

func (*Image) Object

func (i *Image) Object(width int, height int, format ImageFormat) (image.Image, error)

the image content will be just white blank image width and height should be less than or eq 3840px

type ImageFormat

type ImageFormat string

Jump to

Keyboard shortcuts

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