+
Skip to content

fcjr/geticon

Repository files navigation

geticon

GoDoc Go Report Card

A tiny cross-plaform (macOS + windows) library to get app icons of other applications.

Installation

go get github.com/fcjr/geticon

Usage

import (
    "github.com/fcjr/geticon"
)

// get icon of a running application by PID
icon, err := geticon.FromPid(pid) // returns an image.Image

// get icon of an application by path
icon, err := geticon.FromPath(path) // returns an image.Image

Technical Details

On mac the image.Image returned should always be tiff encoded.

On windows the image.Image returned will be the largest available image from the apps ico set. This can either be a PNG or a BMP.

About

A tiny cross-platform library to get app icons of other applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载