Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blur ¶
type Blur struct {
Sigma string `json:"sigma,omitempty"`
}
Blur produces a blurred version of the image.
type BlurFactory ¶
type BlurFactory struct{}
BlurFactory creates Blur instances.
func (BlurFactory) Name ¶
func (ff BlurFactory) Name() string
Name returns the name of the filter, which is also the directive used in the image filter block.
func (BlurFactory) New ¶
func (ff BlurFactory) New(args ...string) (imagefilter.Filter, error)
Syntax:
blur [<sigma>]
Parameters:
sigma must be a positive floating point number and indicates how much the image will be blurred. Default is 1.
func (BlurFactory) Unmarshal ¶
func (ff BlurFactory) Unmarshal(data []byte) (imagefilter.Filter, error)
Unmarshal decodes JSON data and returns a Blur instance.
Click to show internal directories.
Click to hide internal directories.