brille

package module
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FLIP_DIRECTION_HORIZONTAL string = constants.FLIP_DIRECTION_HORIZONTAL
View Source
const FLIP_DIRECTION_VERTICAL string = constants.FLIP_DIRECTION_VERTICAL
View Source
const GRAYSCALE_TYPE_AVERAGE string = constants.GRAYSCALE_TYPE_AVERAGE
View Source
const GRAYSCALE_TYPE_LUMINANCE string = constants.GRAYSCALE_TYPE_LUMINANCE
View Source
const ROTATE_FIXED_180 uint = constants.ROTATE_FIXED_180
View Source
const ROTATE_FIXED_270 uint = constants.ROTATE_FIXED_270
View Source
const ROTATE_FIXED_90 uint = constants.ROTATE_FIXED_90

Variables

This section is empty.

Functions

func Binary

func Binary(file io.Reader, threshold uint8) (io.Reader, string, error)

threshold: 0 to 255

func BoxBlur

func BoxBlur(file io.Reader, radius uint) (io.Reader, string, error)

radius: any uint

func Brightness

func Brightness(file io.Reader, amount int) (io.Reader, string, error)

amount: -255 to 255

func ColorInversion

func ColorInversion(file io.Reader) (io.Reader, string, error)

func Contrast

func Contrast(file io.Reader, amount int) (io.Reader, string, error)

amount: -255 to 255

func EightColors

func EightColors(file io.Reader) (io.Reader, string, error)

func Emboss

func Emboss(file io.Reader) (io.Reader, string, error)

func Flip

func Flip(file io.Reader, direction string) (io.Reader, string, error)

direction: horizontal or vertical

func GammaCorrection

func GammaCorrection(file io.Reader, amount float64) (io.Reader, string, error)

amount: 0 to 3.99

func GaussianBlur added in v2.0.4

func GaussianBlur(file io.Reader, sigma float64) (io.Reader, string, error)

sigma: 0 to 99

func Grayscale

func Grayscale(file io.Reader, grayscaleType string) (io.Reader, string, error)

grayscale type: average or luminance

func HueRotate

func HueRotate(file io.Reader, angle int) (io.Reader, string, error)

angle: any int

func Kuwahara

func Kuwahara(file io.Reader, radius uint) (io.Reader, string, error)

radius: 0 to 40

func Laplacian

func Laplacian(file io.Reader) (io.Reader, string, error)

func RotateFixed

func RotateFixed(file io.Reader, angle uint) (io.Reader, string, error)

angle: 90, 180 or 270 (use provided constants)

func Sepia

func Sepia(file io.Reader) (io.Reader, string, error)

func Sharpen

func Sharpen(file io.Reader, amount uint) (io.Reader, string, error)

amount: 0 to 100

func Sobel

func Sobel(file io.Reader) (io.Reader, string, error)

func Solarize

func Solarize(file io.Reader, threshold uint8) (io.Reader, string, error)

threshold: any uint8

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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