Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
October 2017
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031    

Calendar Calendar

RSS feeds


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 


Social bookmarking

Social bookmarking Digg  Social bookmarking Delicious  Social bookmarking Reddit  Social bookmarking Stumbleupon  Social bookmarking Slashdot  Social bookmarking Yahoo  Social bookmarking Google  Social bookmarking Blinklist  Social bookmarking Blogmarks  Social bookmarking Technorati  

Bookmark and share the address of battle programmers alliance on your social bookmarking website

moti construct the megazord with me !

View previous topic View next topic Go down

moti construct the megazord with me !

Post  kurosen on 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
avatar
kurosen

Posts : 64
Join date : 2012-04-17

View user profile

Back to top Go down

NetLingo

Post  kurosen on Tue Feb 14, 2017 11:10 pm

avatar
kurosen

Posts : 64
Join date : 2012-04-17

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum