ownmaprenderer

package
v0.0.0-...-14f1a14 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: LGPL-2.1 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImageWithBackground

func NewImageWithBackground(r image.Rectangle, c color.Color) *image.RGBA

Types

type Point

type Point struct {
	X float64 // between 0 and 1. 0 = left of image, 1 = right of image
	Y float64 // between 0 and 1. 0 = top of image, 1 = bottom of image
}

type RasterRenderer

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

func NewRasterRenderer

func NewRasterRenderer(font *truetype.Font) *RasterRenderer

func (*RasterRenderer) RenderRaster

func (rr *RasterRenderer) RenderRaster(ctx context.Context, dbConnSet *ownmapdal.DBConnSet, size image.Rectangle, bounds osm.Bounds, zoomLevel ownmap.ZoomLevel, style styling.Style) (image.Image, errorsx.Error)

func (*RasterRenderer) RenderTextTile

func (rr *RasterRenderer) RenderTextTile(size image.Rectangle, text string) (image.Image, errorsx.Error)

Jump to

Keyboard shortcuts

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