Documentation ¶
Overview ¶
Package formatx Created by xuzhuoxi on 2019-04-26. @author xuzhuoxi
Package formatx Created by xuzhuoxi on 2019-05-31. @author xuzhuoxi
Index ¶
- Constants
- func CheckFormatRegistered(format string) bool
- func GetExtName(formatName string) string
- func RegisterFormat(name string, encodeFunc ImageEncodeFunc, decodeFunc ImageDecodeFunc)
- func RegisterFormatExt(formatName string, extName string)
- type ImageDecodeFunc
- type ImageEncodeFunc
- type ImageFormat
Constants ¶
View Source
const ( Auto ImageFormat = "" PNG = "png" JPEG = "jpeg" JPG = "jpg" JPS = "jps" BMP = "bmp" WEBP = "webp" )
Variables ¶
This section is empty.
Functions ¶
func CheckFormatRegistered ¶
func GetExtName ¶ added in v1.0.1
func RegisterFormat ¶
func RegisterFormat(name string, encodeFunc ImageEncodeFunc, decodeFunc ImageDecodeFunc)
func RegisterFormatExt ¶ added in v1.0.1
Types ¶
type ImageEncodeFunc ¶
Directories ¶
Path | Synopsis |
---|---|
Package jpegx Created by xuzhuoxi on 2019-04-27.
|
Package jpegx Created by xuzhuoxi on 2019-04-27. |
Package pngx Created by xuzhuoxi on 2019-04-27.
|
Package pngx Created by xuzhuoxi on 2019-04-27. |
Package webpx Create on 2023/5/3 @author xuzhuoxi
|
Package webpx Create on 2023/5/3 @author xuzhuoxi |
Click to show internal directories.
Click to hide internal directories.