utils

package
v0.0.0-...-3607970 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

func DecodeAll

func DecodeAll(r io.Reader) ([]image.Image, error)

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

func DetectImageFormat

func DetectImageFormat(filePath string) (string, error)

DetectImageFormat 检测图片真实格式

func DetectImageFormatByte

func DetectImageFormatByte(imageData []byte) (string, error)

DetectImageFormatByte 检测图片真实格式

func Encode

func Encode(w io.Writer, im image.Image) error

func ReadData

func ReadData(data uintptr, count uint32) []byte

ReadData 读取指针数据到 []byte

func RootPath

func RootPath() string

Types

This section is empty.

Directories

Path Synopsis
Package draw provides image composition functions.
Package draw provides image composition functions.
math
f32
Package f32 implements float32 vector and matrix types.
Package f32 implements float32 vector and matrix types.
f64
Package f64 implements float64 vector and matrix types.
Package f64 implements float64 vector and matrix types.
fixed
Package fixed implements fixed-point integer types.
Package fixed implements fixed-point integer types.

Jump to

Keyboard shortcuts

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