Documentation
¶
Overview ¶
Package media 提供 OFD 包中图像资源的读取和解码能力。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(reader ContentReader, filename string) (image.Image, error)
Decode 从包内容读取器中读取并解码栅格图像。
func DecodeBytes ¶ added in v0.1.0
DecodeBytes 从内存中的图像字节直接解码栅格图像。
func ExtractFirstImage ¶
ExtractFirstImage 从基于 ZIP 的文件中提取第一张可以解码的图片。
Types ¶
type ContentReader ¶
ContentReader 提供读取文件解压后内容的能力。
Click to show internal directories.
Click to hide internal directories.