Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rotate ¶
type Rotate struct {
Angle string `json:"angle,omitempty"`
}
Rotate rotates a image 90, 180 or 270 degrees counter-clockwise.
type RotateFactory ¶
type RotateFactory struct{}
RotateFactory creates Rotate instances.
func (RotateFactory) Name ¶
func (ff RotateFactory) Name() string
Name returns the name of the filter, which is also the directive used in the image filter block.
func (RotateFactory) New ¶
func (ff RotateFactory) New(args ...string) (imagefilter.Filter, error)
New initialises and returns a configured Rotate instance.
Syntax:
rotate <angle>
Parameters:
angle is one of the following: 0, 90, 180, 270 (0 is valid, but nothing will be done to the image).
func (RotateFactory) Unmarshal ¶
func (ff RotateFactory) Unmarshal(data []byte) (imagefilter.Filter, error)
Unmarshal decodes JSON data and returns a Rotate instance.
Click to show internal directories.
Click to hide internal directories.