0

Hello All, How Can I change the image (Shown By camera) in surface view to gray scale. And after capturing that image should be saved in Gray scale.

Thanks in advance.

Varun Singh
  • 143
  • 1
  • 2
  • 5
  • see http://stackoverflow.com/questions/3373860/convert-a-bitmap-to-grayscale-in-android – Chintan Rathod Jan 21 '13 at 10:14
  • @VikalpPatel I have tried this Sir. mCamera.stopPreview(); Camera.Parameters cp = mCamera.getParameters(); cp.getSupportedColorEffects(); cp.setColorEffect(Camera.Parameters.EFFECT_MONO); mCamera.setParameters(cp); try { mCamera.setPreviewDisplay(mCameraPreview.mSurfaceHolder); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } mCamera.startPreview(); } – Varun Singh Jan 21 '13 at 10:16
  • No. No. Don't post code as a comment. You have the OP for that. No one is going to read comments to see your code. – Siddharth Lele Jan 21 '13 at 10:25
  • @SiddharthLele Sorry. Actually I'm new in this site and in android development also thats why Not having much idea...Thanx for advice. – Varun Singh Jan 21 '13 at 10:29

0 Answers0