polyline

package module
v0.0.0-...-b733b30 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2016 License: LGPL-3.0 Imports: 7 Imported by: 0

README

polyline

draw polyline using golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MinUint32

func MinUint32(a, b uint32) uint32

Types

type PointFoalt64

type PointFoalt64 struct {
	X float64
	Y float64
}

type PolyLine

type PolyLine struct {
	Image   draw.Image
	Map     map[image.Point]color.Color
	RWMutex *sync.RWMutex
	WG      *sync.WaitGroup
}

func NewPolyLine

func NewPolyLine(img image.Image) *PolyLine

func (*PolyLine) AddLine

func (img *PolyLine) AddLine(start, end image.Point, linecolor color.Color, width float64)

AddPolyLine draws a line between (start.X, start.Y) and (end.X, end.Y)

func (*PolyLine) AddPoint

func (img *PolyLine) AddPoint(point image.Point, pointcolor color.Color)

func (*PolyLine) AddPolyLine

func (img *PolyLine) AddPolyLine(points []image.Point, linecolor color.Color, width float64)

func (*PolyLine) AddaroundPoint

func (img *PolyLine) AddaroundPoint(point PointFoalt64, pointcolor color.Color, width float64)

func (*PolyLine) Draw

func (img *PolyLine) Draw()

func (*PolyLine) SaveToPngFile

func (img *PolyLine) SaveToPngFile(imagename string)

Jump to

Keyboard shortcuts

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