Documentation ¶
Index ¶
- Constants
- func CaptureWindow(hwnd win.HWND, options ...Options) (image.Image, error)
- func EnumWindows(enumFunc WNDENUMPROC, lParam uintptr) error
- func FindWindowByName(windowName string) (win.HWND, error)
- func GetActiveWindow() (win.HWND, error)
- func GetDesktopWindow() (win.HWND, error)
- func GetWindowDisplayAffinity(hwnd win.HWND) (uint32, error)
- func SetLogger(l Logger)
- type Logger
- type Options
- type WNDENUMPROC
- type WindowInfo
Constants ¶
View Source
const ( WithWindowFrame = Options(1 << iota) // 1 Include Windows Frame in png image NoAlphaFix // 2 Do not automatically fix even alpha value is zero, )
View Source
const ( WDA_NONE = 0x00000000 WDA_MONITOR = 0x00000001 WDA_EXCLUDEFROMCAPTURE = 0x00000011 )
Variables ¶
This section is empty.
Functions ¶
func CaptureWindow ¶
Capture all the window
func EnumWindows ¶
func EnumWindows(enumFunc WNDENUMPROC, lParam uintptr) error
func GetActiveWindow ¶
func GetWindowDisplayAffinity ¶
Some Windows are Disabled to Capture
Types ¶
type WindowInfo ¶
Click to show internal directories.
Click to hide internal directories.