Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RotateGray ¶
func RotateGray(img *image.Gray, angle float64, anchor image.Point, resizeToFit bool) (*image.Gray, error)
RotateGray rotates a grayscale image counterclockwise with a given angle. The point which will represent the center ot the rotation is specified by the anchor argument. The result image can have its original size or it can be resized to fit in the area of the image. Example of usage:
res, err := transform.RotateGray(img, 90.0, {512, 512}, true)
func RotateRGBA ¶
func RotateRGBA(img *image.RGBA, angle float64, anchor image.Point, resizeToFit bool) (*image.RGBA, error)
RotateRGBA rotates an RGBA image counterclockwise with a given angle. The point which will represent the center ot the rotation is specified by the anchor argument. The result image can have its original size or it can be resized to fit in the area of the image. Example of usage:
res, err := transform.RotateGray(img, 90.0, {512, 512}, true)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.