Documentation ¶
Overview ¶
Code generated for package f2ico by go-bindata DO NOT EDIT. (@generated) sources: assets/CUI.ico assets/DLL.ico assets/GUI.ico
Index ¶
- Constants
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func F2ICO(w io.Writer, path string, cfg ...Config) error
- func ICNS2ICO(w io.Writer, r io.Reader, cfg ...Config) error
- func IMG2ICO(w io.Writer, r io.Reader, cfg ...Config) error
- func MustAsset(name string) []byte
- func PE2ICO(w io.Writer, path string, cfg ...Config) error
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type Config
- type GRPICONDIR
- type ICONDIR
- type ICONDIRENTRY
- type IconCommon
- type Info
- type RESDIR
Constants ¶
const ( SECTION_RESOURCES = ".rsrc" RT_ICON = "3/" RT_GROUP_ICON = "14/" )
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func PE2ICO ¶
在 Windows 中,当匹配一个 EXE 文件的图标时,通常会选择其中的一个资源, 这个资源通常是包含在 PE 文件中的一组图标资源中的一个。 选择的资源不一定是具有最小 ID 的资源,而是根据一些规则进行选择。 Choosing an Icon: https://learn.microsoft.com/en-us/previous-versions/ms997538(v=msdn.10)?redirectedfrom=MSDN#choosing-an-icon
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type GRPICONDIR ¶
type ICONDIR ¶
https://www.cnblogs.com/cswuyg/p/3603707.html https://www.cnblogs.com/cswuyg/p/3619687.html https://en.wikipedia.org/wiki/ICO_(file_format)#Header
type ICONDIRENTRY ¶
type ICONDIRENTRY struct { IconCommon Offset uint32 // 图像数据的偏移量 }
type IconCommon ¶
type RESDIR ¶
type RESDIR struct { IconCommon ID uint16 // 图像数据的ID }