image

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = map[string]string{}/* 148 elements not displayed */
View Source
var Sizes = map[string]string{

	"cga":   "320x200",
	"qvga":  "320x240",
	"vga":   "640x480",
	"wvga":  "800x480",
	"svga":  "800x480",
	"wsvga": "1024x600",
	"xga":   "1024x768",
	"wxga":  "1280x800",
	"wsxga": "1440x900",
	"wuxga": "1920x1200",
	"wqxga": "2560x1600",

	"ntsc":   "720x480",
	"pal":    "768x576",
	"hd720":  "1280x720",
	"hd1080": "1920x1080",
}

Functions

This section is empty.

Types

type Image

type Image struct {
	Width      int
	Height     int
	Background color.Color
	Foreground color.Color
	Text       string
	*image.RGBA
}

func New

func New(size, background, foreground, text string) (*Image, error)

func (*Image) Draw

func (img *Image) Draw(w io.Writer) error

Jump to

Keyboard shortcuts

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