CitrixVirtualUser SaveScreenshotToFile Method (Int32, Int32, Int32, Int32, String)C# API
Save a screen portion to file

Namespace: Facilita.Fc.Citrix
Assembly: fcCitrix (in fcCitrix.dll) Version:

public string SaveScreenshotToFile(
	int xPos,
	int yPos,
	int width,
	int height,
	string filePath


Type: System Int32
The x co-ordinate of the top-left of the screen rectangle
Type: System Int32
The y co-ordinate of the top-left of the screen rectangle
Type: System Int32
The width of the screen rectangle.
Type: System Int32
The height of the screen rectangle.
Type: System String
An absolute path or a path relative to the runs folder which to save the bitmap. The file name must be included.

Return Value

The absolute path (including file name) where the screen portion should be saved.

Saves a screen portion of specified size and location (as a bitmap) to either the absolute path specified or under the runs folder hierarchy using the naming convention shown (workspace hierarchy for localhost injector, fcCache for remote)
In addition if the relative path specified contains a folder defined by the user (i.e. <my_folder>\<screenshot>.bmp ) then the path and filename will be split by the VU index and iteration folders;
See Also