imgkit

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binaryzation

func Binaryzation(src image.Image, threshold uint8) image.Image

Binaryzation process image with threshold value (0-255) and return new image.

func Gray

func Gray(src image.Image) *image.Gray

func Read

func Read(path string) (img image.Image, err error)

Read reads an image from a file. only support PNG and JPEG yet.

func Save

func Save(img image.Image, filename string) error

Save saves the image to the given path.

func Scale

func Scale(src image.Image, rect image.Rectangle, scale draw.Scaler) image.Image

Types

This section is empty.

Jump to

Keyboard shortcuts

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