aspose file tools*
The moose likes Android and the fly likes how can i customize cameras height width programmatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how can i customize cameras height width programmatically" Watch "how can i customize cameras height width programmatically" New topic
Author

how can i customize cameras height width programmatically

Suzzane Pinto
Ranch Hand

Joined: Feb 10, 2012
Posts: 213
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Feb 10, 2012
Posts: 213
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Feb 10, 2012
Posts: 213
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

Joined: Jan 08, 2009
Posts: 1398
    
    6

As per my suggestion, it would be better to use MediaStore.ACTION_IMAGE_CAPTURE intent, and scale the final image.


Swastik
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how can i customize cameras height width programmatically
 
Similar Threads
Clipping an image as it is dragged
Readonly unmodifiable collection
Printing from android
How to select JButton?
question about image size