Screenshot!

Discussion in 'Programming General' started by pvash2, May 6, 2009.

Screenshot!
  1. Unread #1 - May 6, 2009 at 10:37 PM
  2. pvash2
    Joined:
    May 5, 2009
    Posts:
    23
    Referrals:
    0
    Sythe Gold:
    0

    pvash2 Newcomer

    Screenshot!

    Found this on the bowels of my hard drive, change stream to file name/path if you want, i had it as a memory stream because i was using the screenshot function to upload a screenshot to a SQL server (Old anti-cheat project of mine)

    have fun

    Code:
    Dim ScreenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
            Dim screenGrab As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
            Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(screenGrab)
            g.CopyFromScreen(New Point(0, 0), New Point(0, 0), ScreenSize)
            Dim stream As New MemoryStream
            screenGrab.Save(stream, ImageFormat.Jpeg)
     
  3. Unread #2 - May 7, 2009 at 3:58 AM
  4. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    Screenshot!

    http://www.daniweb.com/forums/thread94348.html

    You know, I'm starting to wonder why your code is almost exactly the same as anything I can find online. I'm starting to think you might be trying to earn respect with code that isn't yours.

    Only a hypothesis, feel free to prove me wrong.
     
  5. Unread #3 - May 7, 2009 at 7:12 AM
  6. pvash2
    Joined:
    May 5, 2009
    Posts:
    23
    Referrals:
    0
    Sythe Gold:
    0

    pvash2 Newcomer

    Screenshot!

    Its a valid argument, but this I wrote myself
     
< SYI Nulling | Generate a HWID! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site