Reputation: 3858
Can I apply effects on a running camera surface and save with these effects onto the SD card?
I want to apply effects like negative, black & white, etc.
Upvotes: 2
Views: 2039
Reputation: 28379
Set the parameters to whatever you want like this...
mCamera = Camera.open();
Camera.Parameters cp = mCamera.getParameters();
cp.setJpegQuality(100);
cp.setColorEffect(Parameters.SCENE_MODE_PORTRAIT);
cp.setFlashMode(Parameters.FLASH_MODE_ON);
cp.setColorEffect(Parameters.EFFECT_MONO);
setPictureSize(cp);
mCamera.setParameters(cp);
Then take your picture and the effects will be in the data byte array that's in the callback. Just save the image to the SDcard as is.
Upvotes: 4