Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultBackgraundColor = "#FFF" DefaultImageWigth = 640 DefaultImageHeight = 480 DefaultText = "Image Generator" DefaultTextColor = "#000" DefaultFontFile = "assets/Raleway-Bold.ttf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
Image *image.RGBA
Properties ImageProperties
}
type ImageProperties ¶
type ImageProperties struct {
BackgroundImage *image.Image
BackgraundColor *hex2rgb.Hex
ImageWigth int
ImageHeight int
Text string
TextColor *hex2rgb.Hex
LabelFontFile string
}
func (*ImageProperties) InitImageProperties ¶
func (imageProperties *ImageProperties) InitImageProperties(keys map[string][]string)
Click to show internal directories.
Click to hide internal directories.