Android - Convert BMP to JPEG with 8-bit depth -


i have fingerprint image captured in bmp format. code below.

mbitmapfp = bitmap.createbitmap(wight, height, config.rgb_565);       mcanvas = new canvas(mbitmapfp);       mpaint = new paint();        colormatrix cm = new colormatrix();       cm.setsaturation(0);       colormatrixcolorfilter f = new colormatrixcolorfilter(cm);       mpaint.setcolorfilter(f); 

i have requirement wherein bmp file needs converted jpeg depth of 8-bit. can please help?


Comments