Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func BitBlt(hdcDest HDC, nXDest, nYDest, nWidth, nHeight int, hdcSrc HDC, nXSrc, nYSrc int, ...) bool
- func CaptureRect(rect image.Rectangle) (image.Image, error)
- func CaptureScreen() (image.Image, error)
- func DeleteDC(hdc HDC) bool
- func DeleteObject(hObject HGDIOBJ) bool
- func GetDeviceCaps(hdc HDC, index int) int
- func GetSystemMetrics(index int) int
- func ReleaseDC(h HWND, hDC HDC) bool
- func SaveToFile(img image.Image, p string) error
- func ScreenRect() (image.Rectangle, error)
- type BITMAPINFO
- type BITMAPINFOHEADER
- type HANDLE
- type HDC
- type HGDIOBJ
- type HWND
- type RGBQUAD
Constants ¶
View Source
const ( HORZRES = 8 // 屏幕的宽度(物理) VERTRES = 10 // 屏幕的高度(物理) DESKTOPHORZRES = 118 // 屏幕的宽度(真实) DESKTOPVERTRES = 117 // 屏幕的高度(真实) SM_CMONITORS = 80 // 显示器个数 BI_RGB = 0 InvalidParameter = 2 DIB_RGB_COLORS = 0 SRCCOPY = 0x00CC0020 )
Variables ¶
This section is empty.
Functions ¶
func CaptureScreen ¶
func DeleteObject ¶
func GetDeviceCaps ¶
func GetSystemMetrics ¶
func ScreenRect ¶
Types ¶
type BITMAPINFO ¶
type BITMAPINFO struct { BmiHeader BITMAPINFOHEADER BmiColors *RGBQUAD }
type BITMAPINFOHEADER ¶
Click to show internal directories.
Click to hide internal directories.