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

Function NewBitmapFromResourceIdForDPI

bitmap.go:187–189  ·  view source on GitHub ↗

NewBitmapFromResourceIdForDPI creates a Bitmap at given DPI from resource by ID.

(id int, dpi int)

Source from the content-addressed store, hash-verified

185
186// NewBitmapFromResourceIdForDPI creates a Bitmap at given DPI from resource by ID.
187func NewBitmapFromResourceIdForDPI(id int, dpi int) (*Bitmap, error) {
188 return newBitmapFromResource(win.MAKEINTRESOURCE(uintptr(id)), dpi)
189}
190
191func newBitmapFromResource(res *uint16, dpi int) (bm *Bitmap, err error) {
192 hInst := win.GetModuleHandle(nil)

Callers 1

BitmapForDPIMethod · 0.85

Calls 1

newBitmapFromResourceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…