utils

package
v0.0.0-...-8b4747e Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBMP

func DecodeBMP(b []byte) (image.Image, error)

DecodeBMP parse bmp format

func DecodeGIF

func DecodeGIF(b []byte) (image.Image, error)

DecodeGIF decode gif format

func DecodeICNS

func DecodeICNS(b []byte) (image.Image, error)

DecodeICNS parse icns format

func DecodeICO

func DecodeICO(b []byte) (image.Image, error)

DecodeICO parse ico format

func DecodeJPG

func DecodeJPG(b []byte) (image.Image, error)

DecodeJPG decode jpeg format

func DecodePNG

func DecodePNG(b []byte) (image.Image, error)

DecodePNG parse png format

func DecodeTIFF

func DecodeTIFF(b []byte) (image.Image, error)

DecodeTIFF decode tiff format

func DecodeWEBP

func DecodeWEBP(b []byte) (image.Image, error)

DecodeWEBP decode webp format

func EncodeBMP

func EncodeBMP(i image.Image) ([]byte, error)

EncodeBMP parse bmp format

func EncodeGIF

func EncodeGIF(i image.Image) ([]byte, error)

EncodeGIF parse gif format

func EncodeICNS

func EncodeICNS(i image.Image) ([]byte, error)

EncodeICNS parse icns format

func EncodeICO

func EncodeICO(i image.Image) ([]byte, error)

EncodeICO parse ico format

func EncodeJPG

func EncodeJPG(i image.Image) ([]byte, error)

EncodeJPG parse jpeg format

func EncodePNG

func EncodePNG(i image.Image) ([]byte, error)

EncodePNG parse png format

func EncodeSVG

func EncodeSVG(i image.Image) ([]byte, error)

EncodeSVG parse svg format

func EncodeTIFF

func EncodeTIFF(i image.Image) ([]byte, error)

EncodeTIFF parse tiff format

func EncodeWEBP

func EncodeWEBP(i image.Image) ([]byte, error)

EncodeWEBP parse webp format

Types

This section is empty.

Jump to

Keyboard shortcuts

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