bmask

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

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 5 Imported by: 0

README

bmask

Single functionality package for drawing images with a bordered mask.

// Draw creates a canvas and draws a border of specified with around the source image.
// It then uses the canvas as a mask for the background image. The threshold is what
// determines if a pixel should be counted when checking for an edge. Default to 0.
func Draw(source string, background string, lineWidth int, threshold int) error

Example

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(source string, background string, lineWidth int, threshold int) error

Draw creates a canvas and draws a border of specified with around the source image. It then uses the canvas as a mask for the background image. The threshold is what determines if a pixel should be counted when checking for an edge. Default to 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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