C# 클래스 BitrixAQA.Selenium.General.ScreenCapture

Provides functions to capture the entire screen, or a particular window, and save it to a file.
파일 보기 프로젝트 열기: BitrixQA/BitrixAQA 1 사용 예제들

공개 메소드들

메소드 설명
CaptureScreen ( ) : Image

Creates an Image object containing a screen shot of the entire desktop

CaptureScreenToFile ( string filename, ImageFormat format ) : void

Captures a screen shot of the entire desktop, and saves it to a file

CaptureWindow ( IntPtr handle ) : Image

Creates an Image object containing a screen shot of a specific window

CaptureWindowToFile ( IntPtr handle, string filename, ImageFormat format ) : void

Captures a screen shot of a specific window, and saves it to a file

Printscreen ( bool returnStringPath = false ) : string

Метод делает принтскрин и записывает файл в папку \screenshots. Возвращает имя файла

메소드 상세

CaptureScreen() 공개 메소드

Creates an Image object containing a screen shot of the entire desktop
public CaptureScreen ( ) : Image
리턴 Image

CaptureScreenToFile() 공개 메소드

Captures a screen shot of the entire desktop, and saves it to a file
public CaptureScreenToFile ( string filename, ImageFormat format ) : void
filename string
format System.Drawing.Imaging.ImageFormat
리턴 void

CaptureWindow() 공개 메소드

Creates an Image object containing a screen shot of a specific window
public CaptureWindow ( IntPtr handle ) : Image
handle System.IntPtr The handle to the window. (In windows forms, this is obtained by the Handle property)
리턴 Image

CaptureWindowToFile() 공개 메소드

Captures a screen shot of a specific window, and saves it to a file
public CaptureWindowToFile ( IntPtr handle, string filename, ImageFormat format ) : void
handle System.IntPtr
filename string
format System.Drawing.Imaging.ImageFormat
리턴 void

Printscreen() 공개 정적인 메소드

Метод делает принтскрин и записывает файл в папку \screenshots. Возвращает имя файла
public static Printscreen ( bool returnStringPath = false ) : string
returnStringPath bool true - вернуть имя файла в виде простой строки
리턴 string