Show / Hide Table of Contents

Method CaptureScreenImage.Capture(+ 1 overload)


Overload

Captures image from window client area into memory stored in this variable.

public bool Capture(wnd w, RECT? r = null, CIFlags flags = CIFlags.WindowDC)
Parameters
w  (wnd)

Window or control.

r  (RECT?)

Rectangle in w client area coordinates. If null, uses w.ClientRect.

flags  (CIFlags)
Returns
bool

false if r empty or not in the client area and used flag Relaxed (else exception).


Overload(top)

Captures image from screen into memory stored in this variable.

public bool Capture(RECT r, bool relaxed = false)
Parameters
r  (RECT)
relaxed  (bool)

If r empty, return false instead of exception.

Returns
bool

false if r empty and relaxedtrue (else exception).