padding

package
v0.64.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPaddingUniform

func AddPaddingUniform(im image.Image, paddingWidth uint, paddingColor color.Color) image.Image

func CreateIsPaddingFuncSimple

func CreateIsPaddingFuncSimple(paddingColor color.Color) func(testColor color.Color) bool

func NonPaddingRectangle

func NonPaddingRectangle(im image.Image, isPadding IsPaddingFunc) image.Rectangle

func PaddingWidthBottom

func PaddingWidthBottom(im image.Image, isPadding IsPaddingFunc) uint

func PaddingWidthLeft

func PaddingWidthLeft(im image.Image, isPadding IsPaddingFunc) uint

func PaddingWidthRight

func PaddingWidthRight(im image.Image, isPadding func(c color.Color) bool) uint

func PaddingWidthTop

func PaddingWidthTop(im image.Image, isPadding IsPaddingFunc) uint

func PaddingWidths

func PaddingWidths(im image.Image, isPadding IsPaddingFunc) (top uint, right uint, bottom uint, left uint)

Types

type IsPaddingFunc

type IsPaddingFunc func(c color.Color) bool

Jump to

Keyboard shortcuts

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