Class Screenshot
Represents an image of the page currently loaded in the browser.
public class Screenshot- Inheritance
- 
      
      Screenshot
- Inherited Members
Constructors
Screenshot(string)
Initializes a new instance of the Screenshot class.
public Screenshot(string base64EncodedScreenshot)Parameters
- base64EncodedScreenshotstring
- The image of the page as a Base64-encoded string. 
Properties
AsBase64EncodedString
Gets the value of the screenshot image as a Base64-encoded string.
public string AsBase64EncodedString { get; }Property Value
AsByteArray
Gets the value of the screenshot image as an array of bytes.
public byte[] AsByteArray { get; }Property Value
- byte[]
Methods
SaveAsFile(string, ImageFormat)
Saves the screenshot to a file, overwriting the file if it already exists.
public void SaveAsFile(string fileName, ImageFormat format)Parameters
- fileNamestring
- The full path and file name to save the screenshot to. 
- formatImageFormat
- A System.Drawing.Imaging.ImageFormat object indicating the format to save the image to. 
ToString()
public override string ToString()