invert

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invert

type Invert struct{}

Invert produces an inverted (negated) version of the image.

func (Invert) Apply

func (f Invert) Apply(repl *caddy.Replacer, img image.Image) (image.Image, error)

Apply applies the image filter to an image and returns the new image.

type InvertFactory

type InvertFactory struct{}

InvertFactory creates Invert instances.

func (InvertFactory) Name

func (ff InvertFactory) Name() string

Name returns the name of the filter, which is also the directive used in the image filter block.

func (InvertFactory) New

func (ff InvertFactory) New(args ...string) (imagefilter.Filter, error)

New initialises and returns a configured Grayscale instance.

Syntax:

invert

no parameters.

func (InvertFactory) Unmarshal

func (ff InvertFactory) Unmarshal(data []byte) (imagefilter.Filter, error)

Unmarshal decodes JSON data and returns a Invert instance.

Jump to

Keyboard shortcuts

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