SaveBitmap
Saves a bitmap to the local drive.
void SaveBitmap(string pathName);
Parameters
pathName:
The filename or full path to save the bitmap to.
Return Value
None.
Remarks
If only a filename is given it saves the file in the data\Files
folder for the project i.e. in code the same as Datapath + "Files\\" + pathName;
Example
wordWindow = FindTopWindow("Document1 - Microsoft Word");
Control toolbar = wordWindow.FindControl("Standard", TextMatch.Exact);
toolbar.SaveBitmap("word_bar.bmp"); // this will save a bitmap of the window with the specified handle
Related: