I have an android application which allows the user to take a picture using the phone camera.
Further more I want to edit the photo that I’ve taken.I don’t wanna do complicated operations on it, just something predifened.Some kind of logo at the bottom of the picture!!
Can someone point me in the right direction,please?
You can use the camera class to take a picture. There is a detailed explanation on how to use it here:
To take pictures using
Cameraclass, do the following steps:Camerafromopen(int).getParameters().setParameters(Camera.Parameters).setDisplayOrientation(int).setPreviewDisplay(SurfaceHolder). Without a surface, the camera will be unable to start the preview.startPreview()to start updating the preview surface. Preview must be started before you can take a picture.takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback, Camera.PictureCallback)to capture a photo. Wait for the callbacks to provide the actual image data.startPreview()again first.stopPreview()to stop updating the preview surface.onPause()(and re-open() it inonResume()).takePicuturewill give you a jpeg image and then you can add your watermark. For that look intoCanvas.drawBitmapwith alpha channel.