fio

package
v1.1.4-0...-af12951 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package fio provides file I/O utilities for loading and saving images.

fio 包提供图像加载和保存的文件 I/O 工具。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadGIF

func LoadGIF(path string) (*gif.GIF, error)

LoadGIF loads a GIF image from the specified file path.

LoadGIF 从指定的文件路径加载 GIF 图像。

func LoadImage

func LoadImage(path string) (image.Image, error)

LoadImage loads an image from the specified file path.

LoadImage 从指定的文件路径加载图像。

func LoadJPG

func LoadJPG(path string) (image.Image, error)

LoadJPG loads a JPG image from the specified file path.

LoadJPG 从指定的文件路径加载 JPG 图像。

func LoadPNG

func LoadPNG(path string) (image.Image, error)

LoadPNG loads a PNG image from the specified file path.

LoadPNG 从指定的文件路径加载 PNG 图像。

func SaveGIF

func SaveGIF(path string, g *gif.GIF) error

SaveGIF encodes a GIF and saves it to the specified file path.

SaveGIF 保存 gif 到 path

func SaveJPG

func SaveJPG(path string, im image.Image, quality int) error

SaveJPG encodes an image as JPG and saves it to the specified file path.

SaveJPG 将图像编码为 JPG 并保存到指定的文件路径。

func SavePNG

func SavePNG(path string, im image.Image) error

SavePNG encodes an image as PNG and saves it to the specified file path.

SavePNG 将图像编码为 PNG 并保存到指定的文件路径。

Types

This section is empty.

Jump to

Keyboard shortcuts

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