Rank: Member Groups: Member
Joined: 10/30/2019 Posts: 10
|
Hi,
we are using your EO.Webbrowser as a replacement for the windows forms browser control.
The control itself works very fine. Thanks for that.
Unfortunatly, we have not found a way to copy or save images which a displayed in the browser. There are options to customize the context menu, but none for saving images.
Do you plan to implement new options for the context menu for copying and saving images?
Something like the original context menu from the standard browser control or like the chrome context menu.
Kind regards, Peter
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,201
|
Hi,
This is no built in way to do this as the browser engine in fact does not have the original image. When the browser engine receives an image from the server, it decodes it and then keeps the decoded image object in memory, but the original image file (for example, in JPG format) is discarded.
As such in order for you to "Save" the image, you must redownload the image from the web server. You can do this with your own code (such as .NET's built-in WebRequest class) using the Url provided by e.SourceUrl in your BeforeContextMenu event handler.
Hope this helps. Please feel free to let us know if you have any more questions.
Thanks!
|