imgutils

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

imgutils

Golang image related utility functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBorders

func AddBorders(img *image.NRGBA, colr color.Color, borderWidth int, aThresh uint8)

AddBorders draws a colr colored border borderWidth pixels wide around all shapes/lines in img

func IsEmptyPixel

func IsEmptyPixel(img *image.NRGBA, pixX int, pixY int) bool

IsEmptyPixel returns true if the pixel at the given point in img has an alpha value of 0

func OccupiedAreaRect

func OccupiedAreaRect(img *image.NRGBA) image.Rectangle

OccupiedAreaRect returns a rectangle bounding the area of img that is occupied by visible pixels

func ParseHexColor

func ParseHexColor(s string) (colr color.NRGBA, err error)

ParseHexColor converts a 6 rune string of hexidecimal characters into a color.NRGBA

Types

This section is empty.

Jump to

Keyboard shortcuts

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