Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func BitBlt(hdcDest HDC, nXDest, nYDest, nWidth, nHeight int, hdcSrc HDC, nXSrc, nYSrc int, ...)
- func DeleteDC(hdc HDC) bool
- func DeleteObject(hObject HGDIOBJ) bool
- func GetDIBits(hdc HDC, hBitmap HBITMAP, start uint32, cLines uint32, bits unsafe.Pointer, ...) bool
- func GetDeviceCaps(hdc HDC, index int) int
- func GetDpiForSystem() int
- func GetSystemMetrics(index int) int
- func ReleaseDC(hwnd HWND, hDC HDC) bool
- func SetThreadDpiAwarenessContext(value int32) error
- type BITMAPINFOHEADER
- type Grabber
- type HANDLE
- type HBITMAP
- type HDC
- type HGDIOBJ
- type HWND
Constants ¶
View Source
const ( SM_XVIRTUALSCREEN = 76 SM_YVIRTUALSCREEN = 77 SM_CXVIRTUALSCREEN = 78 SM_CYVIRTUALSCREEN = 79 HORZRES = 8 VERTRES = 10 BI_RGB = 0 InvalidParameter = 2 DIB_RGB_COLORS = 0 SRCCOPY = 0x00CC0020 DPI_AWARENESS_CONTEXT_UNAWARE = -1 DPI_AWARENESS_CONTEXT_SYSTEM_AWARE = -2 )
Various MS Windows API constants. nolint: golint
Variables ¶
This section is empty.
Functions ¶
func BitBlt ¶
func BitBlt(hdcDest HDC, nXDest, nYDest, nWidth, nHeight int, hdcSrc HDC, nXSrc, nYSrc int, dwRop uint)
BitBlt calls the Windows API function.
func DeleteObject ¶
DeleteObject calls the Windows API function.
func GetDIBits ¶
func GetDIBits(hdc HDC, hBitmap HBITMAP, start uint32, cLines uint32, bits unsafe.Pointer, bitmapInfo *BITMAPINFOHEADER, usage uint32) bool
GetDIBits calls the Windows API function.
func GetDeviceCaps ¶
GetDeviceCaps calls the Windows API function.
func GetSystemMetrics ¶
GetSystemMetrics calls the Windows API function.
func SetThreadDpiAwarenessContext ¶
SetThreadDpiAwarenessContext calls the Windows API function.
Types ¶
type BITMAPINFOHEADER ¶
type BITMAPINFOHEADER struct { BiSize uint32 BiWidth int32 BiHeight int32 BiPlanes uint16 BiBitCount uint16 BiCompression uint32 BiSizeImage uint32 BiXPelsPerMeter int32 BiYPelsPerMeter int32 BiClrUsed uint32 BiClrImportant uint32 }
BITMAPINFOHEADER describes a .bmp file.
type Grabber ¶
type Grabber struct {
// contains filtered or unexported fields
}
Grabber is the type that provides images from the desktop
func NewGrabber ¶
NewGrabber creates a new instance of a grabber.
type HDC ¶
type HDC HANDLE
HDC is a handle for a device context.
func CreateCompatibleDC ¶
CreateCompatibleDC calls the Windows API function.
Click to show internal directories.
Click to hide internal directories.