MCPcopy Index your code
hub / github.com/lxn/walk / NewBitmapFromWindow

Function NewBitmapFromWindow

bitmap.go:236–243  ·  view source on GitHub ↗
(window Window)

Source from the content-addressed store, hash-verified

234}
235
236func NewBitmapFromWindow(window Window) (*Bitmap, error) {
237 hBmp, err := hBitmapFromWindow(window)
238 if err != nil {
239 return nil, err
240 }
241
242 return newBitmapFromHBITMAP(hBmp, window.DPI())
243}
244
245// NewBitmapFromIcon creates a new bitmap with given size in native pixels and 96dpi and paints the
246// icon on it.

Callers 1

ScreenshotMethod · 0.85

Calls 3

hBitmapFromWindowFunction · 0.85
newBitmapFromHBITMAPFunction · 0.85
DPIMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…