battle programmers alliance

battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share | 
 

 vb.net capture selected part from screenshot

View previous topic View next topic Go down 
AuthorMessage
Moti Barski

avatar

Posts : 74
Join date : 2011-08-02

PostSubject: vb.net capture selected part from screenshot   Sat Dec 05, 2015 4:47 pm

overlord stage 2 was enabled

add btn and picbox
Code:
Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim pic As Bitmap = New Bitmap(270, 100)
        Dim gfx As Graphics = Graphics.FromImage(pic)
        gfx.CopyFromScreen(New Point(MousePosition.X, MousePosition.Y), New Point(0, 0), pic.Size)
        PictureBox1.Image = pic

    End Sub
End Class
Back to top Go down
View user profile
 
vb.net capture selected part from screenshot
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» How to capture screenshot only the specific element?
» How to capture screenshots in RC with JUnit
» How to take a screenshot using webdriver + C#
» How to capture the alert message in Selenium IDE
» "Capture the Summer" Photo Contest

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: