Take A Screenshot Of The Rectangular Area?

Jun 15, 2009

I'm currently using the following code to take a screenshot of my desktop:

Dim r As Rectangle = Screen.PrimaryScreen.WorkingArea
Dim bmp As New Bitmap(r.Width, r.Height)
Dim g As Graphics = Graphics.FromImage(bmp)

[code].....

I'd like some direction in taking a screenshot of just a specific area. The area I need is where the rectangle encapsulates. If 've played around with it for a while tyring to figure out how to just take a screenshot of the rectangular area, but can't seem to figure it out.

View 2 Replies


ADVERTISEMENT

Check For Object Location Around Rectangular Area?

Oct 12, 2011

I have a form that allows me to drag and drop pictures but I want it to check if the object is in the correct location

*curpic = the current picture that has been selected
If curpic.location.X > bx1.Location.X And curpic.location.Y > bx1.Location.Y Then
If curpic.location.X < bx1.Location.X + bx1.Width And curpic.location.Y < bx1.Location.Y +

[code].....

View 2 Replies

Algo / Code To Cover A Rectangular Area Using Circles?

Jun 13, 2012

This is a problem like the puzzle - "find minimum number of coins to completely cover a piece of paper".

The difference is:

in my case RADIUS of the coins is variable (but all coins should have same radius).

Real scenario:

1. I need to draw circular shapes on a rectangular image.

2. Number of circles (N) is CONSTANT/ User input

3. Size of image (S) is CONSTANT/ User input

4. The program should find the MINIMUM RADIUS (R) that is needed to draw N number of circles on an image of size S, so that, the image is completely hidden behind the circles.

This is NOT a puzzle/assignment that I'm trying to solve.This is part of a larger project that I'm working on.

I don't need any drawing code. I just need the code/algo to find the radius.

View 22 Replies

VS 2010 Screenshot Of Active Window Area

Jan 16, 2012

Is it possible to have VB.NET take a screenshot of a specific area in a program?

View 13 Replies

[2005] Screenshot Of Small Area On Form?

Feb 10, 2009

I have a form with a webbrowser and other things. I want to know how to take a screenshot of just a small area on my form. I searched and only found how to do a screenshot of the entire screen. how can i provide X and Y values of where I want my screenshot?

View 11 Replies

Crop Form Screenshot - Screen Capture Of Twindows Form And Display Only A Certain Specified Area

Aug 2, 2010

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Form2.PictureBox1.Load(bm2)

[CODE]...

So I'm trying to take a screen capture of the windows form and display only a certain specified area of that screen capture in a picturebox on a different form. Kind of like this. First, take the screen capture of the form: Then get a specified area of that form through x,y coordinates or something and display it on a picturebox on a separate form.

View 1 Replies

Set The Viewable Area To A Smaller Screen Area?

Jun 11, 2012

Trying to set the viewable area to a smaller screen area and have it cycle through as the person moves using collision detection to move the backgroudn image. Here is the start but its off to a bad start so far.

Public Class Form1
Dim Mapx As Integer = 600
Dim Mapy As Integer = 2000

[code]....

Basically the forum size is set to 600x2000 but the client should only allow you to view 600x600. I want it to add +1 once you "collide with a invisable box I'll add and this will redraw the screen.

View 4 Replies

Specify Actual Usable Form Area Instead Of Outside Area?

May 12, 2010

I designed a form and managed to fit graphics inside it. Picture box is 465 pixels high. Form1 is 500 pixels high. SnapShot of the screen verifies that the 500 pixel height is the overal height. It includes the upper Bar and lower frame. Is there an instruction to set the From's inner pixel size and not overal?

View 2 Replies

Making A Non-rectangular UI

Apr 15, 2009

I'm making a non-rectangular UI and I've tried different approaches but still can't get the results I want. The following codes are for the user to move the form around.

[Code]....

View 10 Replies

Display A Rectangular Array?

Aug 2, 2011

I'm trying to do a tic-tac-toe console application for practice. I created a case statement for the user to pick which square they want to fill in. [code]...

View 1 Replies

Draw Rectangular Outside The Form?

Oct 21, 2010

I would like to draw a rectangular outside the form using mouse position but so far, I only found out how to draw rectangular inside the form.

View 12 Replies

VS 2010 Rectangular Array?

Dec 9, 2010

In a rectangular array which is correct or considered standard? dim array(row,column) as..or dim array(column,row) as. Not sure it actually matters outside of how it looks in your head.

View 4 Replies

Coordinate Of Mouse Move Not Same As Rectangular

Mar 31, 2011

Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
Label5.Text = "X:" & e.X
Label6.Text = "Y:" & e.Y
End Sub
Dim objectrect As Rectangle = rects(0)
Dim object_x As Integer = objectrect.X
Dim object_y As Integer = objectrect.Y
Label7.Text = object_x
Label8.Text = object_y
I discovered that these labels are not the same, the mouse move is more accurate. My mouse is currently pointing at the upper left corner of rectangular.

View 5 Replies

Declaring Jagged Or Rectangular Array

Sep 21, 2010

I'm working on a reporting section of code for an inventory app I'm making for my office.I call a text file, read every line into an array then populate information pages with what has been pulled from the text file.For reporting, I want to read every text file in the directory, reading each one into a multidimensional array.Thus I can call and report on each item, i.e.ItemArray(i,2) would be all systems with Windows 2008 EE..I have code that lists all files in the desired directory and counts each file, so I eventually get counts of how deep I need the first level of the jagged array to be. but not until after code execution. Basically how can I write each array of data to the jagged array.[code]But I get a null reference exception. "Use the new keyword to create an object instance".

View 8 Replies

Draw Rectangular On Panel In (Windows)?

Apr 14, 2009

This is code i am applying for Draw a Rectangular on Form..same logic i applied for Panel it's not work..

[Code]...

View 2 Replies

Initialize Rectangular Str-array In VB2010?

Sep 16, 2011

I need some constant arrays to be ported like this one:

[3] - first dimension
[2] - dimensions in each first dimension
[3] size of string array is needed in the language i'm porting from, y - 0, o - 1, \0 - 2 = 3 new RevTable[3][2][3] =

[Code]...

View 3 Replies

Forms :: Ossible To Make A Picturebox That Is Not Rectangular?

Jun 1, 2010

Is it possible to make a picturebox that is not rectangular? Such as a circle?

View 1 Replies

Moving Picture Boxes In A Rectangular Shape?

Jun 15, 2010

I'm trying to make a program where three race cars move around a track. with randomizers and timers, I only want to do one lap. My "cars" are pictureboxes. so the starting line's location is (400, 150). Here's the coding for the inside car:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TimerRight.Enabled = Not TimerRight.Enabled

[code].....

View 1 Replies

Rectangular Arrays Of Fixed Size At Runtime

Apr 20, 2011

In languages like C++ and Java, it is possible to declare an array of an arbitrary size and then give it a specific size later in the code.

[Code]....

View 1 Replies

VS 2008 Create Rectangular Array From List?

May 25, 2011

i read data from a textfile into a one dimensional array (string()) and refer to that later on to build a new list with just the lines i want. using chartData as New List (of String) I can load the List collection just fine. Now, I want to send the output to a table so I can bind it to a datagrid. using Split and AddRange breaks the one dimensional data up into new rows but I want this sort of thing:

"Row0 Cell0"->"Row0 Cell1 "->"Row0 Cell3";<line break>
"Row1 Cell0""Row1 Cell1"Row1 Cell3;<line break>

Note I provided for characters that can be used in a split function (-> and vbTab), which works, but the split in the List gives me a one dimensional array.

View 5 Replies

VS 2010 - Creating Rectangular Shape In Excel

Aug 16, 2011

The VBA Code is
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 105.75, 54.75, 114, 65.25).Select
ActiveSheet.Shapes.AddShape(msoShapeOval, 441, 57, 117.75, 90.75).Select
For VB.Net, I tried looking the prefix for "msoShapeRectangle" or "msoShapeOval" in
Microsoft.Office.Core.MsoShapeType. But couldn't find it.

View 2 Replies

Extend The Client Area Of Form To To The Non-client Area?

Nov 19, 2009

I guess thats what I need to do, Im trying to allow the user to right click on the top of my form, and my custom Context Menu Strip is displayed, not windows context menu strip. I guess somehow i would need to get the size and draw a rectangle on the non client area and see if the user has right clicked in that rectangle? if so how would I get the area of the non client area?

View 7 Replies

Mutating An Image - Alter A Rectangular Portion Of The Image?

Mar 21, 2011

I have a bitmap displayed in a picturebox.The bitmap is a moderately complex image. It isn't a solid color, nor is it some repeating pattern,but it is a picture with a very narrow range of colors (all blue).I have a way to alter the whole image in a suitable fashion to indicate that it has been selected.What I would like to be able to do is alter a rectangular portion of the image in some way.Ideally,I would be merging in a semi transparent color such that a segment of the image would have a different appearance to it.

View 7 Replies

How To Get A Screenshot

May 30, 2012

I know how to get a screenshot but how to I add the cursor into the picture (including when the cursor changes)? [code]

View 4 Replies

Take A Screenshot In .NET?

May 13, 2003

how to take a screenshot in vb.net. Preferably in a JPG or GIF format, but if not any format will do.

View 4 Replies

Get A Screenshot Of Everything Behind Another Window?

Mar 30, 2010

I want to get a screenshot that is behind Firefox.

That means. I want to hide firefox in that picture so i can see everything behind it.

View 2 Replies

Screenshot On Click?

Feb 11, 2012

Here I am once again, trying to make yet another program. am currently looking for a method to screenshot when the user clicks.?Example: When you open the program, and click, it will capture a screenshot and automatically save it to a folder. This will continue until the program is closed.

View 14 Replies

Take A Screenshot Of Panel?

Jul 3, 2010

I have a program that has the ability to take a screenshot of a Panel on a form.I provide the user with a Save File Dialog box to choose the path of the saved .png image.My problem is that if the user does not move the modal Save File Dialog box out of the way before clicking the save button, the screenshot includes the box over the top of the panel.

View 5 Replies

Take A Screenshot Of Screen?

Apr 24, 2010

I'm trying to take a screenshot of my screen, and get the picture from memory. Then convert it to a string so it can be sent over a network. So far I've tried to adapt this code.

Dim
ScreenSize As
Size = New

[code].....

View 7 Replies

Take Screenshot WITH Cursor?

Feb 19, 2010

welll everyone knows how to make a screenshot app...but wat about a screenshot that includes your cursor in the bmp image?

View 3 Replies







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