Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flip ¶
type Flip struct {
Direction string `json:"direction,omitempty"`
}
Flips flips (mirrors) a image vertically or horizontally.
type FlipFactory ¶
type FlipFactory struct{}
FlipFactory creates Flip instances.
func (FlipFactory) Name ¶
func (ff FlipFactory) Name() string
Name returns the name of the filter, which is also the directive used in the image filter block.
func (FlipFactory) New ¶
func (ff FlipFactory) New(args ...string) (imagefilter.Filter, error)
New initialises and returns a configured Flip instance.
Syntax:
flip <h|v>
Parameters:
h|v determines if the image flipped horizontally or vertically.
func (FlipFactory) Unmarshal ¶
func (ff FlipFactory) Unmarshal(data []byte) (imagefilter.Filter, error)
Unmarshal decodes JSON data and returns a Flip instance.
Click to show internal directories.
Click to hide internal directories.