effects

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlurEffect

type BlurEffect struct{}

BlurEffect applies Gaussian blur

func (*BlurEffect) Apply

func (e *BlurEffect) Apply(img image.Image, params map[string]interface{}) (image.Image, error)

Apply applies Gaussian blur to an image

func (*BlurEffect) Name

func (e *BlurEffect) Name() string

Name returns the effect name

func (*BlurEffect) Validate

func (e *BlurEffect) Validate(params map[string]interface{}) error

Validate checks if the effect parameters are valid

type OpacityEffect

type OpacityEffect struct{}

OpacityEffect adjusts image opacity

func (*OpacityEffect) Apply

func (e *OpacityEffect) Apply(img image.Image, params map[string]interface{}) (image.Image, error)

Apply adjusts the opacity of an image

func (*OpacityEffect) Name

func (e *OpacityEffect) Name() string

Name returns the effect name

func (*OpacityEffect) Validate

func (e *OpacityEffect) Validate(params map[string]interface{}) error

Validate checks if the effect parameters are valid

type RoundedEffect

type RoundedEffect struct{}

RoundedEffect implements rounded corners

func (*RoundedEffect) Apply

func (e *RoundedEffect) Apply(img image.Image, params map[string]interface{}) (image.Image, error)

Apply applies rounded corners to an image

func (*RoundedEffect) Name

func (e *RoundedEffect) Name() string

Name returns the effect name

func (*RoundedEffect) Validate

func (e *RoundedEffect) Validate(params map[string]interface{}) error

Validate checks if the effect parameters are valid

type ShadowEffect

type ShadowEffect struct{}

ShadowEffect adds a drop shadow

func (*ShadowEffect) Apply

func (e *ShadowEffect) Apply(img image.Image, params map[string]interface{}) (image.Image, error)

Apply adds a drop shadow to an image

func (*ShadowEffect) Name

func (e *ShadowEffect) Name() string

Name returns the effect name

func (*ShadowEffect) Validate

func (e *ShadowEffect) Validate(params map[string]interface{}) error

Validate checks if the effect parameters are valid

type StrokeEffect

type StrokeEffect struct{}

StrokeEffect adds a border around an image

func (*StrokeEffect) Apply

func (e *StrokeEffect) Apply(img image.Image, params map[string]interface{}) (image.Image, error)

Apply adds a border to an image

func (*StrokeEffect) Name

func (e *StrokeEffect) Name() string

Name returns the effect name

func (*StrokeEffect) Validate

func (e *StrokeEffect) Validate(params map[string]interface{}) error

Validate checks if the effect parameters are valid

Jump to

Keyboard shortcuts

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