java.lang.Object | |
↳ | android.hardware.Camera.Parameters |
Handles the parameters for pictures created by a Camera service.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a single string with all the parameters set in
this Parameters object.
| |||||||||||
Returns the value of a String parameter.
| |||||||||||
Returns the value of an integer parameter.
| |||||||||||
Returns the image format for pictures.
| |||||||||||
Returns the dimension setting for pictures.
| |||||||||||
Returns the image format for preview pictures.
| |||||||||||
Returns the setting for the rate at which preview frames
are received.
| |||||||||||
Returns the dimensions setting for preview pictures.
| |||||||||||
Sets an integer parameter.
| |||||||||||
Sets a String parameter.
| |||||||||||
Sets the image format for pictures.
| |||||||||||
Sets the dimensions for pictures.
| |||||||||||
Sets the image format for preview pictures.
| |||||||||||
Sets the rate at which preview frames are received.
| |||||||||||
Sets the dimensions for preview pictures.
| |||||||||||
Takes a flattened string of parameters and adds each one to
this Parameters object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Creates a single string with all the parameters set in this Parameters object.
The unflatten(String) method does the reverse.
Returns the value of a String parameter.
key | the key name for the parameter |
---|
Returns the value of an integer parameter.
key | the key name for the parameter |
---|
Returns the image format for pictures.
Returns the dimension setting for pictures.
Returns the image format for preview pictures.
Returns the setting for the rate at which preview frames are received.
Returns the dimensions setting for preview pictures.
Sets an integer parameter.
key | the key name for the parameter |
---|---|
value | the int value of the parameter |
Sets a String parameter.
key | the key name for the parameter |
---|---|
value | the String value of the parameter |
Sets the image format for pictures.
pixel_format | the desired picture format (PixelFormat.YCbCr_420_SP, PixelFormat.RGB_565, or PixelFormat.JPEG) |
---|
Sets the dimensions for pictures.
width | the width for pictures, in pixels |
---|---|
height | the height for pictures, in pixels |
Sets the image format for preview pictures.
pixel_format | the desired preview picture format (PixelFormat.YCbCr_420_SP, PixelFormat.RGB_565, or PixelFormat.JPEG) |
---|
Sets the rate at which preview frames are received.
fps | the frame rate (frames per second) |
---|
Sets the dimensions for preview pictures.
width | the width of the pictures, in pixels |
---|---|
height | the height of the pictures, in pixels |
Takes a flattened string of parameters and adds each one to this Parameters object.
The flatten() method does the reverse.
flattened | a String of parameters (key-value paired) that are semi-colon delimited |
---|