Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, June 10, 2016 8:05:25 AM(UTC)
charlesthompson

Groups: Registered
Posts: 5


I am trying to capture my screen as a picture and when I do, it does not capture the full height.

I try:

protected void btnCaptures_Click(object sender, EventArgs e)
{

Bitmap bitmap = new Bitmap

(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height);

Graphics graphics = Graphics.FromImage(bitmap as System.Drawing.Image);

graphics.CopyFromScreen(0, 0, 0, 0, bitmap.Size);

bitmap.Save(Server.MapPath(@"Screen\ScreenShot2.Bmp"), ImageFormat.Bmp);

}

I have tried the above many times without success. How can I capture my entire screen???
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, June 14, 2016 11:55:43 AM(UTC)
Nick Villalobos

Groups: Registered
Posts: 119

Was thanked: 4 time(s) in 4 post(s)

If you have downloaded our 60 day evaluation you will find sample code relating to capturing a full screen image at:

C:\LEADTOOLS 19\Examples\DotNet\CS\ScreenCaptureDemo


If you have any more questions, you may reply back in this forum or you can contact us at support@leadtools.com
Nick Villalobos attached the following image(s):
Capture.PNG
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.118 seconds.