imgutils

package
v0.8.16 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CropImage

func CropImage(img image.Image, crop image.Rectangle) (image.Image, error)

CropImage takes an image and crops it to the specified rectangle.

func ReadImage

func ReadImage(reader io.Reader) (image.Image, error)

func ReadImageFile

func ReadImageFile(filename string) (image.Image, error)

func ResizeImage

func ResizeImage(src image.Image, w, h int) image.Image

func WritePNGImage

func WritePNGImage(img image.Image, name string) error

WritePNGImage - writes an Image back to the disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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