imagedecode

package module
v0.0.0-...-09672b4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: Apache-2.0 Imports: 8 Imported by: 2

README

#imagedecode

Documentation

Index

Constants

View Source
const (
	GIF_TYPE = "image/gif"
	BMP_TYPE = "image/x-ms-bmp"
	JPG_TYPE = "image/jpeg"
	PNG_TYPE = "image/png"
)

Variables

View Source
var BMP = []byte("BM")
View Source
var GIF = []byte("GIF")
View Source
var JPG = []byte{0xff, 0xd8, 0xff}
View Source
var PNG = []byte{0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a}

Functions

func Decode

func Decode(imgName string) (image.Image, error)

func GetImageType

func GetImageType(imgName string) (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