C# Class Alx.Web.Screenshot

Afficher le fichier Open project: AlexSanseau/Web.Screenshot

Méthodes publiques

Méthode 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

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

Method Details

GetSize() public static méthode

public static GetSize ( Devices device ) : Size
device Devices
Résultat System.Drawing.Size

Save() public static méthode

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
Résultat void

Save() public static méthode

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
Résultat void

Take() public static méthode

public static Take ( string url, Devices device = Devices.Desktop ) : Image
url string
device Devices
Résultat Image

Take() public static méthode

public static Take ( string url, Size size ) : Image
url string
size System.Drawing.Size
Résultat Image