effects

package
v0.0.0-...-55700be Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbossGray

func EmbossGray(img *image.Gray) (*image.Gray, error)

EmbossGray takes a grayscale image and returns a copy of the image in which each pixel has been replaced either by a highlight or a shadow representation.

func EmbossRGBA

func EmbossRGBA(img *image.RGBA) (*image.Gray, error)

EmbossRGBA takes an RGBA image and returns a grayscale image in which each pixel has been replaced either by a highlight or a shadow representation.

func InvertGray

func InvertGray(img *image.Gray) *image.Gray

InvertGray takes a grayscale image and return its inverted grayscale image.

func InvertRGBA

func InvertRGBA(img *image.RGBA) *image.RGBA

InvertRGBA takes an RGBA image and return its inverted RGBA image.

func PixelateGray

func PixelateGray(img *image.Gray, factor float64) (*image.Gray, error)

PixelateGray enlarges the pixels of a grayscale image. The factor value specifies how much should be the pixels enlarged. Example of usage:

res, err := effects.PixelateGray(img, 5.0)

func PixelateRGBA

func PixelateRGBA(img *image.RGBA, factor float64) (*image.RGBA, error)

PixelateRGBA enlarges the pixels of a RGBA image. The factor value specifies how much should be the pixels enlarged. Example of usage:

res, err := effects.PixelateRGBA(img, 5.0)

func Sepia

func Sepia(img *image.RGBA) *image.RGBA

Sepia applies Sepia tone to an RGBA image.

func SharpenGray

func SharpenGray(img *image.Gray) (*image.Gray, error)

SharpenGray takes a grayscale image and returns another grayscale image where each edge is added to the original image.

func SharpenRGBA

func SharpenRGBA(img *image.RGBA) (*image.RGBA, error)

SharpenRGBA takes an RGBA image and returns another RGBA image where each edge is added to the original image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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