Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i customize cameras height width programmatically

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,,

i want to change the hieght width of camera as per my need...
how can i achieve that programmatically???
found no guid link...any idea to startup??
 
Tim Moores
Bartender
Posts: 2798
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by that? The camera is a hardware device that is not amenable to changes. You can influence the size of the preview and the size of the final image, though.
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes....i exactly want to do what you said.....sory for putting a wrong question.....i want to change the height and width of preview

how do i do that anyway??
 
Tim Moores
Bartender
Posts: 2798
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The preview size can be set in the onSurfaceChanged method of your SurfaceHolder.Callback. That's step 3 in this tutorial: http://code.google.com/p/openmobster/wiki/CameraTutorial
 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have tried this code


it can apture image but the resolution is not changed.....which i have set in my code....it saves as default only
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per my suggestion, it would be better to use MediaStore.ACTION_IMAGE_CAPTURE intent, and scale the final image.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic