imageutil

package
Version: v0.0.0-...-edb5f9d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package imageutil implements some image utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Border

func Border(r image.Rectangle, inset int) [4]image.Rectangle

Border returns four rectangles that together contain those points between r and r.Inset(inset). Visually:

00000000
00000000
11....22
11....22
11....22
33333333
33333333

The inset may be negative, in which case the points will be outside r.

Some of the returned rectangles may be empty. None of the returned rectangles will overlap.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL