dilation

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

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

Go to latest
Published: Nov 22, 2016 License: GPL-3.0 Imports: 4 Imported by: 2

README

Dilation

Image library to take a image and "dialate" or stroke the image around the non-transparent pixels.

Example:

From:

example

To:

example-output

Documentation

Index

Constants

View Source
const MAXC = 65535.0

MAXC is the maxium value returned by RGBA() will have

Variables

This section is empty.

Functions

func Dialate

func Dialate(dstImg draw.Image, config DialateConfig) error

Dialate will dialate a given image around transparent edges

Types

type DialateConfig

type DialateConfig struct {
	Stroke      int
	StrokeColor color.Color
}

DialateConfig settings for the dialation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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