battle programminga forum for elite programmerswith extreme will powerto sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share | 
 

 moti construct the megazord with me !

Go down 
AuthorMessage
kurosen

avatar

Posts : 62
Join date : 2012-04-17

PostSubject: moti construct the megazord with me !   Tue Feb 14, 2017 7:39 pm

vb.net see through picbox image capture megazord

Code:
Public Class Form1

    Dim bmp1 As Bitmap
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim screenBounds = Screen.PrimaryScreen.Bounds
        Dim screenShot As New Bitmap(screenBounds.Width, screenBounds.Height)
        Using g = Graphics.FromImage(screenShot)
            g.CopyFromScreen(screenBounds.Location, Point.Empty, screenBounds.Size)
        End Using

        bmp1 = screenShot
        Dim cloneRect As New Rectangle(Me.Location.X + PictureBox1.Location.X + 4, Me.Location.Y + PictureBox1.Location.Y + 30, PictureBox1.Width - 5, PictureBox1.Height - 35)

        PictureBox2.Image = bmp1.Clone(cloneRect, bmp1.PixelFormat)
    End Sub
End Class
Back to top Go down
View user profile
kurosen

avatar

Posts : 62
Join date : 2012-04-17

PostSubject: NetLingo   Tue Feb 14, 2017 11:10 pm

Back to top Go down
View user profile
 
moti construct the megazord with me !
Back to top 
Page 1 of 1

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