Screenshot returns an image of the window.
()
| 1935 | |
| 1936 | // Screenshot returns an image of the window. |
| 1937 | func (wb *WindowBase) Screenshot() (*image.RGBA, error) { |
| 1938 | bmp, err := NewBitmapFromWindow(wb) |
| 1939 | if err != nil { |
| 1940 | return nil, err |
| 1941 | } |
| 1942 | defer bmp.Dispose() |
| 1943 | |
| 1944 | return bmp.ToImage() |
| 1945 | } |
| 1946 | |
| 1947 | // FocusedWindow returns the Window that has the keyboard input focus. |
| 1948 | func FocusedWindow() Window { |
nothing calls this directly
no test coverage detected