How can we apply effects like a sepia filter to our camera images?
Asked
Active
Viewed 2,547 times
3
-
Did you find what you were looking for? I am also looking for filters/effects to apply in images taken from the camera or acquired from the gallery, but i didnt find anything so far. – Thiago Jun 22 '11 at 22:57
2 Answers
0
Please see the code below.This will help
if (mCamera != null) {
Camera.Parameters parameters = mCamera.getParameters();
if(parameters.getColorEffect() != null) {
// Set all kind of stuffs here..
parameters.setSceneMode(Camera.Parameters.FLASH_MODE_AUTO);
parameters.setColorEffect(Camera.Parameters.EFFECT_SEOIA);
mCamera.setParameters(parameters);
mPicture = getPictureCallback();
mPreview.refreshCamera(mCamera);
}else
{
Toast toast = Toast.makeText(myContext, "Your Camera Does Not Support Color Effect!", Toast.LENGTH_LONG);
toast.show();
}
}

bummi
- 27,123
- 14
- 62
- 101
0
Get a Basic idea in this url http://www.riagora.com/2010/07/android-air-and-the-camera/
and then refer android graphics which helps you to know about BlurMaskFilter and color Filter and so on.. http://developer.android.com/reference/android/graphics/package-summary.html.
After getting the basic idea from the first url, try to apply these filter in that.

Sankar Ganesh PMP
- 11,927
- 11
- 57
- 90