imaging

package
v0.0.0-...-18a76ad Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOpacity

func ApplyOpacity(i image.Image, opacity float64) image.Image

ApplyOpacity applies the given opacity (0.0..1.0) to the given image. This method returns a new image where the alpha channel is a combination of the source alpha and the opacity.

func CreateMask

func CreateMask(i image.Image) image.Image

CreateMask creates a mask image by using the gray value of the given image as the value for the mask alpha channel. Returns the mask image.

func Resize

func Resize(i image.Image, width float64) image.Image

Resize creates a copy of the given image, scaled to the given rectangle.

func Rotate

func Rotate(angle float64, i image.Image) image.Image

Rotate the given image counter-clockwise by angle (radians) degrees. Rotation is around the center of the source image. Returns an image with the rotated pixels.

func ToGray

func ToGray(i image.Image) image.Image

ToGray creates a grayscale version of the given image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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