C# Class Alx.Web.Screenshot

显示文件 Open project: AlexSanseau/Web.Screenshot

Public Methods

Method Description
GetSize ( Devices device ) : Size
Save ( string url, string path, ImageFormat format, Devices device = Devices.Desktop ) : void
Save ( string url, string path, ImageFormat format, Size size ) : void
Take ( string url, Devices device = Devices.Desktop ) : Image
Take ( string url, Size size ) : Image

Private Methods

Method Description
Capture ( string url, Size size ) : Image
DocumentCompleted ( object sender, System.Windows.Forms.WebBrowserDocumentCompletedEventArgs e, Image &image ) : void

Method Details

GetSize() public static method

public static GetSize ( Devices device ) : Size
device Devices
return System.Drawing.Size

Save() public static method

public static Save ( string url, string path, ImageFormat format, Devices device = Devices.Desktop ) : void
url string
path string
format System.Drawing.Imaging.ImageFormat
device Devices
return void

Save() public static method

public static Save ( string url, string path, ImageFormat format, Size size ) : void
url string
path string
format System.Drawing.Imaging.ImageFormat
size System.Drawing.Size
return void

Take() public static method

public static Take ( string url, Devices device = Devices.Desktop ) : Image
url string
device Devices
return Image

Take() public static method

public static Take ( string url, Size size ) : Image
url string
size System.Drawing.Size
return Image