imgprocess

package
v0.0.0-...-7a945f2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFilter

func AddFilter(img image.Image, outputFileName, outputDirName, filter string, filterLevel float64)

AddFilter adjusts different filters like brightness, contrast, saturation for the given image.

Valid filters are :

"brightness", "contrast", "saturation"

func GreyOut

func GreyOut(img image.Image, greyStrength uint8, outputFileName, outputDirName string)

GreyOut will grey out the image as per the greyStrength and output to the outputFileName in the desired outputDirName folder

func GreyOutOld

func GreyOutOld(img image.Image, greyStrength uint8, outputFileName, outputDirName string)

GreyOutOld will grey out the image as per the greyStrength and output to the outputFileName in the desired outputDirName folder

func IsolateColor

func IsolateColor(img image.Image, inputColor color.RGBA, outputFileName, outputDirName string) error

IsolateColor will grey out parts of the image except the input color and output to the outputFileName in the desired outputDirName folder

The input color should be a hexadecimal number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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