Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 14:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Screenshot problem

Discussion on Screenshot problem within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2011
Posts: 159
Received Thanks: 57
Screenshot problem

Hi,

How the **** do I adjust screenshot? Or should I ask why is this not working?

I am trying to use a simple screenshot function:

Code:
Private Function take_screenshot(ByVal X As Integer, ByVal Y As Integer, ByVal Width As Integer, ByVal Height As Integer)
        Dim Img As New Bitmap(Width, Height)
        Dim g As Graphics = Graphics.FromImage(Img)
        g.CopyFromScreen(X, Y, 0, 0, Img.Size)
        g.Dispose()

        Return Img
    End Function
The goal is to make a small screenshot (< 50 x 50 pixels) of spesific area. To test this I have set global hotkey to take a screenshot and then show it in picturebox:

Code:
PictureBox1.Image = take_screenshot(Cursor.Position.X, Cursor.Position.Y, 100, 100)
However this does not take screenshot in the area I want to :O

With more testing I tried to capture full screen and the result can be found in (also attachements but there much smaller)
How to fix this?
Attached Images
File Type: jpg screens.jpg (19.9 KB, 20 views)
BeginnerDO is offline  
Old 12/20/2016, 14:51   #2
 
mrapc's Avatar
 
elite*gold: 238
Join Date: Sep 2009
Posts: 2,327
Received Thanks: 1,164
You can try to take the fullscreen Screenshot and than copy the area you want:
mrapc is offline  
Old 12/20/2016, 19:36   #3
 
elite*gold: 0
Join Date: Aug 2011
Posts: 159
Received Thanks: 57
Quote:
Originally Posted by mrapc View Post
You can try to take the fullscreen Screenshot and than copy the area you want:
This is not a solution.
Firstly I cannot take a full screen screenshot because it now somehow zooms in and leaves bottom and right parts of the screen out. (see the image in 1st post).

Also full screen screenshot is too slow for what I need. That is the reason the goal is to make small screenshots.
BeginnerDO is offline  
Reply


Similar Threads Similar Threads
Screenshot Problem ?!?
05/22/2011 - WarRock - 2 Replies
Hallo Leute ich habe eine frage und zwar habe ich diese Laptop Tastatur und ich würde gerne mal wissen mit welchen tasten ich Screenshots machen kann. http://img17.imageshack.us/img17/9159/img0562cv.j pg http://img5.imageshack.us/img5/2148/img0563e.jpg
Screenshot Problem
03/17/2011 - Technical Support - 7 Replies
Hallo, cih wollte grade einen Scrennshot in dem Spiel Heroes of Newerth machen. Also hab ich die Taste Druck gedrückt und dann in Paint eingefügt, allerdings macht mein Pc dann irgendwie immer nen Screenshot vom Desktop anstatt vom Spiel, als wäre es gar nicht offen..... Vllt kennt jemand ja ne Lösung :)
problem mit Screenshot
01/31/2011 - Metin2 - 10 Replies
ich möchte einen screenshot machen in metin2 DE aber es funtzt nicht ich drücke pos1 bzw druck aber es geschieht nichts bitte um hilfe
metin2 screenshot problem
11/24/2010 - Metin2 - 1 Replies
Hi hab ein probel mit screenshot. Also wenn ich versuche screen zu machen aber dan kommt: speichern des screens fehlgeschlagen. Könnt ihr mir helfen?
Screenshot.Problem
11/06/2010 - Metin2 - 1 Replies
hey hab ein problem hab mir metin2 neu heruntergeladen aber wenn ic hscreens mache steht immer speichern fehlgeschlagen! im ordener she ich auch keinen ordener mit screenshot wie kann ich das machen also den speicheplaytz zuweisen oder woran leigt dass?



All times are GMT +2. The time now is 14:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.