pic

package
v0.2.28 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBmpWidthHeight

func GetBmpWidthHeight(b []byte) (w, h int, err error)

获取 BMP 图片的宽高

func GetPngWidthHeight

func GetPngWidthHeight(b []byte) (w, h int, err error)

获取 PNG 图片的宽高

Types

type PicInfo

type PicInfo struct {
	Format string // 图像数据格式,取值应符合GA/T 1286-2015中5.3.5要求
	Width  int    // 图像水平像素数
	Height int    // 图像垂直像素数
	Depth  int    // 图像数据位深度,取值应符合GA/T 1286-2015中5.3.5要求
	Length int    // 图像数据长度,取值应符合GA/T 1286-2015中5.3.5要求
}

func GetPicInfo

func GetPicInfo(b []byte) (picInfo PicInfo, err error)

Jump to

Keyboard shortcuts

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