MCPcopy Create free account
hub / github.com/lxn/walk / NewIconFromBitmap

Function NewIconFromBitmap

icon.go:198–204  ·  view source on GitHub ↗

NewIconFromBitmap returns a new Icon, using the specified Bitmap as source.

(bmp *Bitmap)

Source from the content-addressed store, hash-verified

196
197// NewIconFromBitmap returns a new Icon, using the specified Bitmap as source.
198func NewIconFromBitmap(bmp *Bitmap) (ic *Icon, err error) {
199 hIcon, err := createAlphaCursorOrIconFromBitmap(bmp, Point{}, true)
200 if err != nil {
201 return nil, err
202 }
203 return newIconFromHICONAndSize(hIcon, bmp.Size(), bmp.dpi), nil
204}
205
206// NewIconFromHICON returns a new Icon at 96dpi, using the specified win.HICON as source.
207//

Callers 1

NewIconFromImageWithSizeFunction · 0.85

Calls 3

newIconFromHICONAndSizeFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…