You Are Here:

Community: Developer Discussion Boards

#1 Old Lightbulb Capture image of less size???? - 2009-04-14, 07:22

Join Date: Mar 2009
Posts: 6
shashikantkalaskar
Offline
Registered User
hi,
i want capture the photo of size 84*106 pixel from front camera of n73.
and also is this possible to select only 84*106 pixels while capturing image???
Can anyone help me????
Reply With Quote

#2 Old Smile Re: Capture image of less size???? - 2009-04-14, 08:17

Join Date: Oct 2008
Posts: 41
valderind4
Offline
Registered User
Did you already see on the mobile phone guide???

Generally it come with funtions of the mobile...

I hope to have helped you...

Best regards...
Reply With Quote

#3 Old Thumbs up Re: Capture image of less size???? - 2009-04-14, 08:53

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
How to learn supported image types?
Code:
System.out.println(System.getProperty("video.snapshot.encodings"));

Getting a jpeg image

byte[] imageData = videoControl.getSnapshot("encoding=jpeg"); //160x120
byte[] imageData = videoControl.getSnapshot("encoding=jpeg width="200" height="150");

Getting a png image

byte[] imageData = videoControl.getSnapshot("encoding=png"); //160x120
FOR FRONT CAMERA
Code:
player = Manager.createPlayer("capture://devcam1");
also checkout the following link..
http://wiki.forum.nokia.com/index.ph...ure_in_Java_ME


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#4 Old Re: Capture image of less size???? - 2009-04-14, 10:13

Join Date: Mar 2009
Posts: 6
shashikantkalaskar
Offline
Registered User
In case of png encoding how to adjust size of image..
Reply With Quote

#5 Old Thumbs up Re: Capture image of less size???? - 2009-04-14, 10:54

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
use this function to check the format supported by the device

System.getProperty("video.snapshot.encodings");

If png is supported by the device then
byte[] imageData = videoControl.getSnapshot("encoding=png width="200" height="150");


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#6 Old Re: Capture image of less size???? - 2009-04-14, 11:51

Join Date: Mar 2009
Posts: 6
shashikantkalaskar
Offline
Registered User
hi,
i tried as jitu_goldie suggested but i am getting media error saying that
Usupported error : encoding=png width=200 height=150
i am given input as below:
videoControl.getSnapshot("encoding=png width=200 height=150");
Reply With Quote

#7 Old Re: Capture image of less size???? - 2009-04-14, 15:33

Join Date: Apr 2009
Posts: 89
Osam
Offline
Regular Contributor
Hi,

Check that the exception is also coming when u put jpeg image format in place of png.
Let me know.

Thanks
Osam
Reply With Quote

#8 Old Thumbs up Re: Capture image of less size???? - 2009-04-14, 18:28

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
Quote:
Originally Posted by shashikantkalaskar View Post
hi,
i tried as jitu_goldie suggested but i am getting media error saying that
Usupported error : encoding=png width=200 height=150
i am given input as below:
videoControl.getSnapshot("encoding=png width=200 height=150");
I had already suggest u to check the formats supported by device

Code:
System.getProperty("video.snapshot.encodings");
it gives u the formats supported by the device. If png is there then only u can use png format.
check and reply.


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#9 Old Re: Capture image of less size???? - 2009-04-14, 21:12

Join Date: Mar 2009
Posts: 6
shashikantkalaskar
Offline
Registered User
yes i have check encodings it supports to png.
it works fine without giving width and height.
Reply With Quote

#10 Old Thumbs up Re: Capture image of less size???? - 2009-04-15, 06:27

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
what height and width are u passing. which device are u taken for testing?


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#11 Old Re: Capture image of less size???? - 2009-04-16, 06:19

Join Date: Mar 2009
Posts: 6
shashikantkalaskar
Offline
Registered User
i have passed width 90 and height 100 and also different combitions.
Device i am using is n73.
Reply With Quote

#12 Old Thumbs up Re: Capture image of less size???? - 2009-04-16, 08:39

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
implement this..

videoControl.getSnapshot("encoding=png&width=80&height=60");

Sorry forgot to tell u to separate the parameters by "&".
try out this and reply

Also Please checkout the following link..
http://www.forum.nokia.com/document/...D8F1EE772.html

IMPORTANT TOPIC THERE : Camera Snapshot Image Types:

Hope this makes sense to you..


thanks,
jitu_goldie..

KEEP TRYING..
Reply With Quote

#13 Old Re: Capture image of less size???? - 2009-04-17, 08:13

Join Date: Mar 2009
Posts: 6
shashikantkalaskar
Offline
Registered User
Thanks ..... it executes successfully......
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
Fast Image Capture Tobias_80 Symbian Media (Graphics & Sounds) 9 2007-06-18 13:29
How to capture QVGA size bitmap image (CBitmapScaler::Scale() too slow) i-masa Symbian Media (Graphics & Sounds) 1 2005-10-24 10:57
How to reduce image size etamburini Mobile Java General 1 2004-06-15 00:26
encoding of image size on mms header pautamo General Messaging 1 2002-08-15 12:55
Largest Image size e4bdevelop General Messaging 1 2002-08-02 10:13

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X 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