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:

 

This topic was last updated on October 11, 2019, at 11:19:01 AM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant