VS 2008 - Screen Capture (Cropped Image)

Aug 31, 2010

I'm trying to save a screen-shot from a FlowLayoutPanel without the desired success. Here's the code I'm using to same the panel as image:

vb.net
Dim bmpScreenshot As Bitmap = New Bitmap(FlowLayoutPanel1.DisplayRectangle.Width, FlowLayoutPanel1.DisplayRectangle.Height, PixelFormat.Format32bppArgb)
Dim gfxScreenshot As Graphics = Graphics.FromImage(bmpScreenshot)
gfxScreenshot.CopyFromScreen(Me.PointToScreen(SplitContainer1.Location), New Point(0, 0), FlowLayoutPanel1.Size, CopyPixelOperation.SourceCopy)
bmpScreenshot.Save("C:FlowLayoutPanel1.Emf", ImageFormat.Emf)

Problem is, when the panel is full of controls and using scrollbars the hidden controls are not captured, since I'm using the CopyFromScreen().

View 6 Replies


ADVERTISEMENT

Way To Capture Screen Image And Then Read Data (OCR?) From Image

Feb 13, 2010

I play a game and in the game you acquire skills which you can display on the screen in a box very similar to a data grid. The grid has 3 columns and X number of rows.Column 1 is the name of the skill, column 2 has a descriptive term like "Beginner" and column has the number of points you have acquired in that skill. So it would look something like this:[code]Remember that it is in a data grid so it has cells like an Excel spreed sheet.The program that I use is able to parse the skill name and the points and save that information outside the game to a n area in the program.My question is, is this possible to do something similar in VB? That is something like, Press a hot key, with will get a screen shot, parse the data and save to a data grid in my VB program.

View 2 Replies

Saving A Cropped Image To Disk?

Aug 16, 2010

I have visual studio .net 2008 installed on a windows XP sp3 machine.

The problem i am having is with trying to save a portion of an image on the hard drive, with a different name ( in other words, i'm cropping an image and wanting to save that part somewhere).

Here is some of the code...

Firstly, this is how i am trying to save a portion of the picture box image...

Code:
m_CroppedBm = New Bitmap(PictureBox1.Image, _rectSelection.Width, _rectSelection.Height)

[Code]....

but i'm getting the same error. And i simply cannot find a way to determine the encoder (or whatever is needed) of each image format type. There was some C++ code on the web with something like "encoder = ImageFormat.Jpg.FindEncoder();" but i couldn't find any equivalent for it in VB.

View 5 Replies

Compress Or Resize Bmp/jpeg Image Immediately After Screen Capture?

May 21, 2011

This is my code to get screen captures every certain interval of time. But each image is being around 150kb and I want to make it smaller. what matters is the image size in kb to be around 70kb ( almost the half ) .

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
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)

[code]....

View 9 Replies

VS 2008 - Capture A Part Of The Screen?

Jan 24, 2010

I'm doing program that I can capture a part of the screen. Heres code, I don't know why it's not working.

[code]...

View 11 Replies

VS 2008 Remote Screen Capture?

Mar 21, 2010

I'm working on a project. I've gotten all the kinks out of my Client/Server tcp chat. But I need to find a way around this problem.

In my chat room, you can have other users view your desktop remotely. But I'm having a problem with this.Does anyone know how I would get a screenshot or possibly video of the desktop and write it to my stream? I can convert it to a string already. and my old method used screenshots written to the disk. I would like to avoid touching the hard drive if possible, so that means extracting the screenshot/video from memory.

View 11 Replies

VS 2008 Screen Capture Saving?

Jan 10, 2011

[code]I can save it only from PictureBox1, I wanna save it directly without loading it in a PictureBox component.

View 4 Replies

VS 2008 Screen Capture - Include The Cursor And Save All The Screenshots As One Video File?

Sep 19, 2009

im using this code

Dim VideoSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim PIC As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim image As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(PIC)

[code]...

How do I include the cursor with this and save all the screenshots as one video file?instead of saving as 1000 pics?

View 2 Replies

Make A Screen Recorder (not Screen Capture) Program

Aug 20, 2010

I wanted to make a screen recorder (not screen capture) program, but I am not entirely sure how to get it started. I have seen many videos and things on how to make one, but all of these just take multiple pictures and then don't compile them into a movie file, and I don't want to take many pictures (unless that is the only way possible.) I am using Visual Basic 2010 Express and I have looked at the Windows Media Encoder, but I can't seem to figure out how to use/implement it (yes, I have downloaded and installed it.) Maybe I can use some kind of ActiveX control?

View 3 Replies

VS 2008 Capture Image Using Webcam?

Jun 21, 2010

I'm developing an application and it needs a facility to take photo of the customer using the webcam.

View 6 Replies

VS 2008 Webcam Image Capture With Directshow?

May 16, 2011

I need to capture a picture from webcam for a project... But there seems to be no easy code available... Also am not able to find any working code for it... saw a codeproject code, but couldnt get it to work..

View 5 Replies

VS 2008 - Open PC Video Camera And Capture Image?

Mar 20, 2009

I want a code that will be usefull to make a program that opens the video camra of the PC and saves the camera sight (or images capture).

View 4 Replies

Capture The PC Screen

Oct 13, 2010

When I first saw Silverlight, I thought that there was a How Do I: video that demonstrated how to capture the PC screen and save it in a WMV file. Since I can't find anything like that I'm wondering if I was dreaming or it has been removed from the Net. My goal is to create a video capture Class that I can use to demonstrate my program and add the feature in my program so the user can record any issues they are having with my program and send it to me. This way I can see what issues they are having with my program.

View 2 Replies

Capture Screen As Movie

Sep 1, 2009

I want to capture a video of my screen with vb .net, and i'd like to avoid using directx. I found a tutorial here url... but it resulted in the program instantly crashing, i think it was designed for .net 1.1;

View 1 Replies

Capture Screen From Service (Win 7)

Aug 30, 2011

I know that a service in Win7 doesnt have a desktop associated to capture a screen - so normal techniques dont work.But how do i overcome this? How do programs like VNC and alikes do it? My code in WIN XP works fine - but in Win 7 i get black image.

View 4 Replies

Capture Screen With My Forms?

Dec 30, 2008

This code captures screen, but it doesn't capture my forms, only other applications in the background.[ode]...

View 6 Replies

Detect Screen Capture In .net?

Feb 11, 2012

Is there a way to detect screen capture or recording is processing.

Atleast a way to know the process behind screen capturing?

i guess something has to be done with Kernal side of the system but not sure.

View 2 Replies

Get Video Screen Capture?

Jun 7, 2011

Does anyone know What the best SDK for video capture is, WME Sdk?

View 3 Replies

How To Capture Screen As Video

Mar 21, 2008

Hi how can I capture my screen as a video? Like record what I do with my mouse and so on until I want it to stop and have a File of it ready.?

View 6 Replies

Make A Screen Capture?

Jun 16, 2010

i need to make a screen capture... but just of a web browser control... i got everything but how to get JUST the web control..

View 1 Replies

Screen Capture With Cropping?

Jul 26, 2010

how would I allow my screen capture to crop and capture only a particular area of a screen?The user should be able to select the area they want to crop. It would be good if the cursor changers to a plus like other screen captures and also the screen is all paused so the user can select the area they want.v

View 4 Replies

Screen Video Capture .NET?

Apr 26, 2012

How can I capture a part of screen as video in VB.NET? Can I set the location of the screen capture and the width of the capture area?

View 1 Replies

Send Screen Capture Over Tcp?

May 3, 2009

I have a application (client) that does a screen capture and sends it to another application (server) over tcp/ip.The problem is that sometimes the images recived on the server i corrupt, it only displays a part of the image, like there is data missing.I have tried to set the sendbuffer and recivebuffer to different values, some works better but not good enought.

[Code].....

View 2 Replies

VS 2008 - How To Check If Image Visible On Screen

May 16, 2012

I am trying to code something that will check if a png image is visible on your screen. So lets say the image is a purple square with yellow circles in it (random example). It will keep checking to see if the same purple square with yellow circles is on your screen. What I'm trying to say is, instead of checking for one pixel color, check to see if the actual image is on there (maybe multiple pixels?)

View 10 Replies

.net - Window Screen Capture (ALT+PRINTSCREEN)

Apr 1, 2010

I found that code somewhere and I find it quite useful but I would like to find a way to make it work so it capture only the given window target. Maybe with a processID or Window Name. Even if that window is not active. I do not want to make that window active but want to get a screen capture like if I was doing Alt+PrintScreen on it.

[Code]....

View 1 Replies

Any Way To Capture Screen Of Form Area?

Mar 2, 2010

I was about to create a code for capturing screen of the area of a form.. Below code is capturing only the form size but from the top of the screen.. I want to capture the area of screen wherever it placed..
Code:
Dim loBmp As Bitmap = Nothing
'Dim Somebitmap As Bitmap
Dim screenSize As Size = New Size(Me.Bounds.Width, Me.Bounds.Height)
Dim screenGrab As New Bitmap(Me.Bounds.Width, Me.Bounds.Height)
Dim g As Graphics = Graphics.FromImage(screenGrab)
'Dim FiletoDelete
'MsgBox(lsFile)
g.CopyFromScreen(0, 0, 0, 0, screenSize) ("Need Some changes here!!")
screenGrab.Save(LogLib & lsFile)

View 5 Replies

Screen Capture Every 30 Seconds For 45 Minutes

Jan 20, 2010

I'm trying to develop a windows form app which will take a screen shot every 30 seconds for about 45 minutes. After 45 minutes, the user will click Finish, and these screenshots will be uploaded to a database. I don't want anything that simulates a PrintScreen key press, because I don't want to alter the users clipboard. The second issue is, for users with multiple screens, I'd like to capture the entire screen image, not just from the primary screen. I'm using Visual Basic .NET 2005.

View 2 Replies

Takes A Screen Capture Of Monitor?

Mar 18, 2009

I have some code that takes a screen capture of my monitor. This code seems to work perfectly OK and can take multiple screen captures, apart from when I do a Print Screen using the keyboard or open SnagIT 8, when I then try to run my code again I get an error "A generic error occured in GDI+"

I am at a bit of a loss, I have had a look on the internet, but everything I seem to find appears to be related to web apps. and access permissions. This is a window based application and therefore can not seem to find an answer.Below is the code I am running:

[Code]...

View 1 Replies

VS 2005 Screen Capture Of A MDI Children?

Jan 29, 2010

I am trying to get the screen capture of a MDI children form. Somehow it is just not working.

Private Sub btnScreen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnScreen.Click
Dim frmMain As frmParent = Me.MdiParent
For Each ctl As Control In frmMain.MdiChildren
If TypeOf ctl Is frmOverview Then

[code]....

View 5 Replies

VS 2010 How To Remotely Capture Screen

Nov 9, 2011

am developing a project in college and i am wondering to capture a screenshot that continuously update so

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved