You Are Here:

Community: Developer Discussion Boards

#1 Old camera zoom and flash control for N70 - 2006-06-13, 13:07

Join Date: Feb 2006
Posts: 16
waqas16
Offline
Registered User
Hi all,

I am making an application on N70 that accesses the camera and capture image. I am having three problems.

1. I want to save the captured image in my memory card, but i am not able to do it. The code that i am using is:

byte[] bmpImage = videoControl.getSnapshot("encoding=bmp");
FileConnection f=(FileConnection)Connector.open(" file:///E:/Images/Image001.bmp",Connector.WRITE);
DataOutputStream dout=f.openDataOutputStream();
dout.write(bmpImage,0,bmpImage.length-1);
dout.flush();
dout.close();
f.close();

I have also tried it with jpeg but still it is not working.

2. I want to use the zoom of the camera can anyone help me in that?

3. And finally how i can use the flash of the camera.

Please reply as soon as possible.
Reply With Quote

#2 Old Re: camera zoom and flash control for N70 - 2006-06-14, 00:05

Join Date: Mar 2006
Posts: 8
mobile07
Offline
Registered User
Hi Waqas16,

I've used the following code successfully:

Code:
      byte[] raw = VideoControl.getSnapshot("encoding=jpeg&width=640&height=480");
	  try {
		OutputStream out;
		FileConnection fc = (FileConnection) Connector.open(fileName, Connector.READ_WRITE);

		if (fc.exists()) {
			out = fc.openOutputStream();
		} else {
			fc.create();
			out = fc.openOutputStream();
		}
		out.write(raw);
		out.close();
		fc.close();
	} catch (Exception ex) {
		...
	}
Regarding 2.) and 3.): As far as I know this is not possible for the N70 because this is device specific. Please let me know if you find a solution.

Happy coding.
Reply With Quote

#3 Old Re: camera zoom and flash control for N70 - 2006-06-14, 01:42

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
The flash/zoom/focus controls are not available in MMAPI. They are included in AMMS (Advanced Multimedia Supplements JSR-234) which is not yet implemented on Nokia devices.

Hartti
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
6682,6620,6600 - Zoom Control, Flash Control, Brightness Control nagkumar Mobile Java General 3 2006-02-24 22:39

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ