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 January 13, 2022, at 02:42:23 PM.

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