UtilWebDownloadImage(String, WebProxy, String) Method
Downloads the specified resource as a Image.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Image DownloadImage(
string url,
WebProxy proxy,
string userAgent
)
Public Shared Function DownloadImage (
url As String,
proxy As WebProxy,
userAgent As String
) As Image
Dim url As String
Dim proxy As WebProxy
Dim userAgent As String
Dim returnValue As Image
returnValue = UtilWeb.DownloadImage(url,
proxy, userAgent)
public:
static Image^ DownloadImage(
String^ url,
WebProxy^ proxy,
String^ userAgent
)
static member DownloadImage :
url : string *
proxy : WebProxy *
userAgent : string -> Image
No code example is currently available or this language may not be supported.
- url String
-
The url to download.
- proxy WebProxy
-
The proxy to use.
- userAgent String
-
Specifies a custom user-agent to perform the web request.
Image
The resource
Image.
This is a code example.
No code example is currently available or this language may not be supported.
Dim proxy As New WebProxy(Host:="myproxy address", Port:=800)
proxy.Credentials = New NetworkCredential("user", "pass")
Dim img As Image = DownloadImage("http://i.imgur.com/EkZXp16.png", proxy, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.