IWebViewSaveImageAt Method Awesomium.NET 1.7.6Awesomium.NET
Attempt to download an image at the specified coordinates in the page. This is meant to be used with ShowContextMenu.

Namespace: Awesomium.Core
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version:

bool SaveImageAt(
	int x,
	int y


Type: SystemInt32
An x-coordinate within an image in the page.
Type: SystemInt32
A y-coordinate within an image in the page.

Return Value

Type: Boolean
true if a download operation for an image at the specified coordinates, was successfully triggered; false otherwise.

InvalidOperationException The member is called on an invalid view. (See: IsLive)

All coordinates should be localized to the view. All values are in pixels, the origin (0,0) begins at the top-left corner of the view, positive y values are "down" and positive x values are "right".

This method will attempt to download the image at the specified coordinates, directly from the server. In technology-specific WebControls, a Save As dialog will be shown in response to the download request.

If you are using the headless WebView component, you will have to handle Download to either display a dialog or silently save the resource. More appropriately in this case, you should assign your implementation of IWebViewPresenter to Presenter, to handle UI related events including ShowDownloadDialog(DownloadEventArgs).

See Also