Saving A Picture Without Manually Choosing The Location?

Feb 4, 2012

I'm making a screen capturing program, and I am trying to save the image. I can do it as a 'save as' like this

save as
savefiledialog1.Title = "Save File"
savefiledialog1.FileName = "Capture"
savefiledialog1.Filter = "JPEG (*.jpg;*.jpeg;*.jpe;*.jfif)|*.jpg;*.jpeg;*.jpe;*.jfif|PNG (*.png)|*.png"

[code]....

How could I do a quick save option so that it auto saves to a certain location that the user doesn't have to choose and as a .jpg?

View 9 Replies


ADVERTISEMENT

Block For The User Who Click Save Without Choosing A Picture Image For The Picturebox?

May 18, 2009

I am trying to block for the user who click save without choosing a picture image for the picturebox. Below is my current code.

Private Sub Button_Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_Save.Click
''/*##########
'' Do something for empty image is provided. If it is null, then .
'' #########*/

[code]....

View 2 Replies

Copy A Picture From One Location And Paste It Into Another Location?

May 3, 2012

I'm trying to copy a picture from one location and paste it into another location however VB throws out the following error

Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED)

both locations are on my local computer. So not sure what is causing the problem.

Here's the code

Module CPASU_SPC
Sub Main()
Console.Title = "MOARW Programs"

[Code]....

View 8 Replies

Get Location Of An Object / Picture?

Jan 8, 2010

Im trying to get the location of a picturebox on my form or say if location = (20,20) then this happens. The action performed by the picturebox is determined by its location i need some way of monitoring it

View 3 Replies

Possible To Get Location Of Picture By Route?

Apr 23, 2012

i want to get location of all black pixel inside the picturebox like the picture2,3 and 4 belownd here's my code

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles b1.Click

[code]......

View 2 Replies

Location Of Mouse Inside Picture Box?

Aug 9, 2009

I researched this and found I had to use something called "ScreenToClient" [URL]...what I want to do is to have a picture box that I can just get the coords from easily (for example 0,0 bottom left hand corner)

So how do I get that to work? (im guessing something like comparing the picturebox size to the form size then working it out but im not quite sure how to do that.)

View 1 Replies

Make A Little Game - Picture Location

Jan 25, 2010

I was wanting to make a little game. You press a start button, and a picture moves into different spaces. If you can hit stop when the picture is in a certain spot, then you win. How do i make it so when i press the stop button, it will check to see if the picture is in the location (180, 307)?

This is what i have:

CODE:

View 4 Replies

Recognize Mouse Location On Map In Picture Box?

Mar 7, 2012

I have a country map in a picture box with provincial divisions. I can fill each province on mouse over by calling following floodfill function on my pictureBox MouseMove event[code]...

View 1 Replies

Vb2008 Changing Picture Location?

Jul 6, 2009

First of all take a look in here :[URL]...As you can see, in the image there're 3 items.So let's talk about the first one, the first right one. (CRAYON SHORTS)I want the picturebox to move always to the left side,After it knocks the "wall" it'll re-start all the progress.So simply, I want the picturebox to move left.

[Code].

View 3 Replies

VS 2010 Saving Project To A Different Location?

Jan 18, 2012

I have Visual Studio 2010 Ultimate.

When I click on "New Project", under the "Name" textbox, I get no "browse" button to save the project somewhere else other than the default Document and Settings folder. But, my friend see that "browse" button under the "Name" textbox.

How can I save the project somewhere else other than the default Document and Settings folder ?

View 2 Replies

Getting Pixel Value From A Selected Location In A Picture Box Display

Feb 15, 2010

I am writing a program in VB 2010. My computer is an E Machines dual processor Intel Celeron running at 1.8 gb/sec with 2 GB of RAM. I have a 1680 X 1050 display and the graphics driver in the computer is fully capable of utilizing this display. I am running Vista Home Edition.

The purpose of the program is to analyze a large number of infrared and visible light images from the geostationary satellites GOES East and West. Note: These images are TIFF and range in size from 400 KB to 70 MB. The pixels are either 8 bit or 10 bit depending on the image type.

The program allows the user to select a series of images from a file folder. These images are then displayed in a picturebox. A map covering the same area is also available to the user. The user may then move the cursor, via the mouse, to a selected location on either the map or in a picture. With a left click that location in terms of image coordinates is used to compute the geographic coordinates of the selected location. These coordinates are then displayed for verification purposes. So far, all of this works properly.

The next thing I need to do is to determine the brightness value of selected pixels in the displayed image. Because brightness is related to temperature this permits a detailed examination of cloud temperature and density in each image. By making this measurement at several different wavelengths (provided by images taken at different wavelengths) the program will then compute the atmospheric extinction factor at each selected wavelength and from that derive the atmospheric transparency function.

Here is where I have run into problems. I cannot find a way to extract the pixel value from the selected X, Y values input either by cursor position or by direct entry. I have tried the various approaches described in the documentation but I either get errors or a pixel value that is unrelated to the image. The following is a section of code that I am currently trying.

[Code].....

View 3 Replies

Picture Into Picturebox Based On Pixel Location?

Sep 30, 2009

i have a chart of images.. and i want to load individual images into picturebox from that chart..chart = big image, eg alphabet chart. (yes i am creating a game for my small nephew.. pictures and alphabet) now, i want to show different pieces of images into picture box. like the A box, b Box etc one option is to cut the chart into pieces, save each piece with different filename and load individual filename into picturebox.but i saw somewhere that we can use pixel location to load images into picturebox..as i recall it required two pixel location, 1 was upper left and other was lower right.. and passing that pixel locations would load the rectangular image between those pixel locations into picturebox?

View 9 Replies

VS 2008 Placing An Image At A Certain Location In A Picture Box?

Feb 6, 2010

how I loaded my image

Dim test(100) As Image
test(0) = Image.FromFile("C: est.jpg")

now i want to put it in a picture box at location 50-50

View 6 Replies

Saving A Picture From A Picture Box?

Nov 6, 2009

This code shows me the preview of a webcam in a picture box. I want to know how to save a frame as a picture file.The code I'm currently using to save it (in the timer tick event) gives me the "Object reference not set to an instance of an object." error..Then I used a debug assert line and it gave me an error that basically says that there is no image in the picture box, while I can clearly see a picture in the picture box. Can anyone please help me write/edit the code to save it?

[Code]...

View 9 Replies

Opening And Saving Files In A Default Location?

Jun 14, 2009

within my project i need to open and save some files. i wont go into detail as theres no need. what i need to do is open the files from the install directory, which could be where ever the user puts it! i also need to be able to open them whilst im building too. if i hard code the directory in then it will fail..obviously

View 3 Replies

Saving Object Location/Information On Forms?

Apr 12, 2011

I am making a program to organize grainbins in seperate yards.In this program, the grainbins need to be moved around and thier position to be saved when the program is closed. I also need to save information such as backcolour and text.I am specifically referring to GroupBoxes, OvalShapes, Textboxes, Labels, and ComboBoxes.

View 2 Replies

VS 2008 - Saving Settings For File Location?

Dec 21, 2010

When I save settings for an application using My.Settings.Save it saves it in %AppData%LocalCompanyname. Because I don't want my app to be installed and I want it to be a just .exe file, and it leaves some files on that computer. I like it to be in my apps location. Can I change that default location?

View 4 Replies

VS 2008 : Saving Workbook To User Specified Location?

Apr 3, 2011

Here's my code what do I need to add to Save the workbook as an Excel file to a user specified directory?

Dim ExcelReport As Excel.ApplicationClass
Dim i As Integer
Dim New_Item As Windows.Forms.ListViewItem
Const MAX_COLUMS As Int16 = 254

[code].....

View 2 Replies

Game Programming :: Appear On A Random Location On Another Specified Larger Picture Box?

Jan 13, 2011

I have a picture box and I tell it to appear on a random location on another specified larger picture box.

here's my code:

Code:
Sub P2_AppleMove()
Dim P2ax As Integer = CInt(Int((P2Foodarea.Width * Rnd()))) ' sets the random area of the food

[Code]....

P2foodarea is a large picture box I created. I only want the apple to spawn on P2Foodarea, atm, it spawns on P1Foodarea which is very weird. P1foodarea is a whole other picture box. I even made new variables as you can see P2ax and P2ay, but it still doesn't spawn on P2Foodarea. I have even tried recreating a new picture box for P2foodarea

View 12 Replies

Picture Saving Into File?

Apr 16, 2010

I want to do that when i load form that saved picture is there. I tryed to make code but its dont work , dont show errors too. Mabye its not possible to do that.

Private Sub ToolStripLabel1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripLabel1.Click
Try
Dim dataloader As New System.IO.StreamReader("c:data/Picture.bmp")
PictureBox1.Text = dataloader.ReadToEnd

[code]....

View 2 Replies

Saving Picture From Picturebox?

Nov 6, 2009

I was wondering why my code doesn't work I want to save a picture from a picture box showing a webcam preview.

Code: picturebox1.Image.Save("C:UsersMyUserNameDesktopa.jpg") I think I need to use the "New" keyword to do something - but how?

View 3 Replies

VS 2010 - Saving Files Location - Cannot Save File To Sub-folder

Jun 3, 2011

I have used the following code too save a notepad file; [Code] The code saves files but only in the 'Application.StartupPath' folder, the save dialogue starts in the correct place a quizzes folder inside the debug folder but files can't be saved here or in folders inside it, even though you can browse them in the dialogue. I want it saving where navigated to in the dialogue.

View 2 Replies

Error Saving Image From Picture Box?

Mar 2, 2010

i'm trying to save a picturebox but it gives me an error,

pictureBox.Image.Save(sDialog.FileName, System.Drawing.Imaging.ImageFormat.Jpeg)in runtime it gives me this error

"ExternalException is not handled "Generic error in GDI+ "

what's wrong?? to add changes on picturebox i do this pictureBox.CreateGraphics

View 3 Replies

Forms :: Saving Picture From Picturebox

Nov 6, 2009

I was wondering why my code doesn't work - I want to save a picture from a picture box showing a webcam preview.[code]

View 4 Replies

Saving And Retrieving Picture From Sql Database?

May 24, 2011

i have this code in saving a picture.

vb.net
empno = txtEmpNo.Text
Dim myFile As System.IO.FileInfo = New System.IO.FileInfo(imagelink)
'' Create a new stream to load this photo into
Dim myStream As FileStream = New FileStream(imagelink.ToString, FileMode.Open, FileAccess.Read)
'' Create a buffer to hold the stream of bytes

[Code]...

but when retrieving, i got an error on this part "Dim FinalImage As Bitmap = New Bitmap(myStream)". The error message goes like "System.ArgumentException: Parameter is not valid. at System.Drawing.Bitmap..ctor(Stream stream). maybe someone would like to help me, on where is the origin of this error.

View 2 Replies

Saving Image In Access From Picture Box?

Mar 26, 2011

I tried this but does not work..

dsNewRow.Item("picture") = PIS.PictureBox3.Image
Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.Click
openimage.Filter = "All Files|*.*|Image Files (*)|*.bmp;*.gif;*.jpg;*.png"

[code]....

View 9 Replies

Saving Picture In Database(mssql)?

Dec 15, 2011

I need to save pictures in my database, my database is MSSQL as of now, my code for getting the picture is this:

Private Sub browsepic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browsepic.Click
With dialogpic 'Open File Dialog sa toolbox
.InitialDirectory = "C:UsersCAMILLEPictures"

[code]....

how to save the picture and how to retrieve it?

View 12 Replies

Saving Picture To Specific Folder

May 17, 2012

A picture is displayed from a webcam into a picturebox. That picture must be saved to a specific folder.

View 6 Replies

Saving Picture With Text Boxes

Aug 23, 2011

I'm creating an application that works like a recipe box. it has a picture box that is in the design of an index card, and it has 3 text boxes. I am having extreme difficulty saving the text boxes with the picture. i am using a database so that the info can be filtered, by recipe name, course description (appetizer, side dish...etc).

[Code]...

View 16 Replies

Using .NET Saving Picture Paths On To SQL Server?

Jun 8, 2010

We are developing applications using VB .NET as front end and SQL Server as back end. We want to store and retrieve pictures in a database. We do not want to store the pictures directly into the database but rather the path of the pcitures so that through the same paths we can retrieve them.

View 14 Replies







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