Documentation
¶
Index ¶
- func ImageToRGBA(src image.Image) *image.RGBA
- func LoadImage(path string) (image.Image, error)
- func LoadPNG(path string) (image.Image, error)
- func ParseHexColor(x string) color.RGBA
- func SaveJPG(path string, im image.Image, quality int) error
- func SavePNG(path string, im image.Image) error
- type Converter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHexColor ¶
Types ¶
type Converter ¶
type Converter struct {
Image image.Image
ImageWidth int
ImageHeight int
OriginalImageWidth int
OriginalImageHeight int
MaxZoom int
TileSize [2]int
}
func NewConverter ¶
func NewConverter() *Converter
func (*Converter) Execute ¶
func (converter *Converter) Execute(size [2]int, efficient bool, imageQuality int, output string) error
Execute a large image into small tiles
Click to show internal directories.
Click to hide internal directories.