hi here is a one function I am using to copy captcha images form webbrowser control without navigating to image url or refersh page ,You need to change the image parameters as per your need
U have not specified any html tag for Avatar so I am unable to edit following function which exactly suit ur need,
Private Function copyImageToClipBoard() As String
Dim doc As mshtml.IHTMLDocument2 = DirectCast(wc.Document.DomDocument, mshtml.IHTMLDocument2)
Dim imgRange As mshtml.IHTMLControlRange = DirectCast(DirectCast(doc.body, mshtml.HTMLBody).createControlRange(), mshtml.IHTMLControlRange)
For Each img As mshtml.IHTMLImgElement In doc.images
imgRange.add(DirectCast(img, mshtml.IHTMLControlElement))
If img.src.Contains("recaptcha/api/image?c=") Or img.src.Contains("seccode.php") Then
imgRange.execCommand("Copy", False, Nothing)
If isManual = True Then
Using bmp As Bitmap = DirectCast(Clipboard.GetDataObject().GetData(DataFormats.Bitmap), Bitmap)
Dim ofrmCap As New frmCaptcha(bmp)
ofrmCap.BringToFront()
ofrmCap.ShowDialog()
mCaptcha = vars.mCaptcha
vars.mCaptcha = Nothing
End Using
Else
bgwDecaptcher.RunWorkerAsync(Clipboard.GetDataObject().GetData(DataFormats.Bitmap))
End If
End If
Next
Return mCaptcha
End Function