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