Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Take Snapshot amendment ؟

$
0
0
Take Snapshot amendment ؟

I've got a tool
AxWindowsMediaPlayer1
WebBrowser1

This code Snapshot Tool AxWindowsMediaPlayer1


Dim saveFile As String = path & ".jpg"
        Dim cropSize As Size = AxWindowsMediaPlayer1.Size
        Dim croppedImage As New Bitmap(AxWindowsMediaPlayer1.Size.Width, AxWindowsMediaPlayer1.Size.Height)
        Dim G As Graphics = Graphics.FromImage(croppedImage)
        G.CopyFromScreen(AxWindowsMediaPlayer1.PointToScreen(Nothing), Nothing, cropSize)
        PictureBox1.Image = croppedImage
        croppedImage.Save(saveFile)
        MsgBox("Saved File To : " & saveFile) 'Showing the whole path where capturedImage is saved
        Process.Start(saveFile) 'Showing The Captured Image In Windows Image Viewer




I want to Snapshot Take pictures of a tool that running , Such as if working tool AxWindowsMediaPlayer1 , Such as if working tool WebBrowser1 ؟

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>