transform

package
v0.0.0-...-55700be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL