Reputation: 187
How to set the camera for only black and white images? In my program I am using
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
for taking images.
Upvotes: 4
Views: 12077
Reputation: 1141
The modes like scene modes or the color effects, once the camera interface is open and ready to use. You can use the Camera.Parameters to set the mode once the camera is up. You can use the EFFECT_MONO(monochrome) from the color effects to get black & white images...
The below code snippet shows on how to use it,
mCameraDevPara.setColorEffect(android.hardware.Camera.Parameters.EFFECT_MONO);
mCameraDev.setParameters(mCameraDevPara);
Upvotes: 11
Reputation: 1896
If you want to launch camera application for taking a shot, there is no way to tell it to shoot in BW mode. The MediaStore.EXTRA_OUTPUT and "crop" are only extra parameters which camera application extracts from the launching intent and they are not related to the shooting mode.
Upvotes: 0