Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrayRotator ¶
GrayRotator decorates *image.Gray with rotation functions
func (*GrayRotator) Image ¶
func (r *GrayRotator) Image() image.Image
Image returns the underlying image as an image.Image value
func (*GrayRotator) Mirror ¶
func (r *GrayRotator) Mirror()
Mirror flips the image around its vertical axis
func (*GrayRotator) Rotate180 ¶
func (r *GrayRotator) Rotate180()
Rotate180 does a simple 180-degree clockwise rotation
func (*GrayRotator) Rotate270 ¶
func (r *GrayRotator) Rotate270()
Rotate270 does a simple 270-degree clockwise rotation
func (*GrayRotator) Rotate90 ¶
func (r *GrayRotator) Rotate90()
Rotate90 does a simple 90-degree clockwise rotation
type RGBARotator ¶
RGBARotator decorates *image.RGBA with rotation functions
func (*RGBARotator) Image ¶
func (r *RGBARotator) Image() image.Image
Image returns the underlying image as an image.Image value
func (*RGBARotator) Mirror ¶
func (r *RGBARotator) Mirror()
Mirror flips the image around its vertical axis
func (*RGBARotator) Rotate180 ¶
func (r *RGBARotator) Rotate180()
Rotate180 does a simple 180-degree clockwise rotation
func (*RGBARotator) Rotate270 ¶
func (r *RGBARotator) Rotate270()
Rotate270 does a simple 270-degree clockwise rotation
func (*RGBARotator) Rotate90 ¶
func (r *RGBARotator) Rotate90()
Rotate90 does a simple 90-degree clockwise rotation
type Rotator ¶
Rotator implements simple 90-degree rotations in addition to mirroring for IIIF compliance. After each operation, the underlying image is replaced with the new image. It's important to note, however, that the source image is never directly changed. A new image is drawn, and the old is simply forgotten by the Rotator.