Skip to main content

SaveBitmap

Saves a bitmap to the local drive.

void SaveBitmap(string pathName);

Parameters

pathName: The filename or full path to save the bitmap to.

If a full pathname is not given, the path will be placed under the data\Files folder.

Return Value

None.

Example

AutomationControl notepadWindow = FindTopAutomationWindow("Notepad", TextMatch.EndsWith, 10000); //finds top window
AutomationControl toolbar = notepadWindow.FindControl("Application", TextMatch.Exact); //find top toolbar control
toolbar.SaveBitmap("menu_bar.bmp"); // this will save a bitmap image of the toolbar into directory C:\fcCache\..WorkspaceName..\..ProjectName..\data\Files\menu_bar.bmp

Related: