images

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateImage

func CreateImage(width, height int) *image.RGBA

func Draw

func Draw(dst *image.RGBA, col, row int, src image.Image)

func ImageFromBinary

func ImageFromBinary(data []byte) (image.Image, error)

func ImageFromReader

func ImageFromReader(r io.Reader) (image.Image, error)

func ImageSize

func ImageSize(data []byte) (width, height int, err error)

func ImageToGif added in v0.2.0

func ImageToGif(img image.Image) ([]byte, error)

func ImageToJpeg added in v0.2.0

func ImageToJpeg(img image.Image) ([]byte, error)

func ImageToPng added in v0.2.0

func ImageToPng(img image.Image) ([]byte, error)

func SaveToWriter

func SaveToWriter(w io.Writer, img image.Image) error

func ValidateImage

func ValidateImage(input []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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