Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
HI,
 
First my question and then the trouble I am having. how can I make sure the picture is saved everytime instead of periodically, I need help with this... thanks..
 

I am using a portable terminal with this terminal I am trying to use the built in camera.
I am using a function

 
Collapse | Copy Code
camera.SnapPicture(FileTmp, m_QualityLevel);
FileTmp referes to a path and a file name
m_QualityLevel is the type format of the picture which is a jpg format high quality.

All that is fine, the problem is if I step through the program it seems to work.
I have 3 buttons.
Activate camera, Foto, Stop.

Activate Button sets up the camera and shows the picture in the picturebox.
Foto is used to take the picture and there is where I have the above line.

Stop Button, stops the camera and clears the PictureBox.

If I take a picture quickly press the stop button afterwards it does not save the picture all though it seems to go through the line, because after the above mentioned line I have a status box which says picture saved. If I take the picture and wait a few seconds it seems to save the picture ok.

I am using the following line... btnStop_Click(btnStop, e); to press the button stop button.
I have used e as well as eventarg.empty and it does the same thing.

I would like to save the picture and use the program button press to avoid havng to physically click the button.

 
Hope you all can help and that I have expressed myself well.

Please let me know. you can email me at: [edit]removed email[/edit]

thanks,

Peter Fraga
Posted 30-May-13 13:17pm
Comments
Sergey Alexandrovich Kryukov at 30-May-13 19:30pm
   
It's possible to screw up anything, in many different ways. How could we possibly see what did you do wrong? Due to improved weather after long rain, my access to your hard drive is somewhat limited.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 315
1 OriginalGriff 273
2 Aajmot Sk 224
3 Marcin Kozub 210
4 Richard MacCutchan 200
0 OriginalGriff 7,853
1 Sergey Alexandrovich Kryukov 7,107
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 30 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100