Hi All I have the following problem, when executed this code.
imageView.setDrawingCacheEnabled(true); Bitmap myBitmap = imageView.getDrawingCache(); ColorMatrix colorMatrix = new ColorMatrix(); colorMatrix.setSaturation(0); Paint paint = new Paint(); ColorMatrixColorFilter cmcf = new ColorMatrixColorFilter(colorMatrix); paint.setColorFilter(cmcf); Bitmap blackAndWhiteBitmap = Bitmap.createBitmap(myBitmap.getWidth(),myBitmap.getHeight(), Bitmap.Config.ARGB_8888); Canvas drawingCanvas = new Canvas(blackAndWhiteBitmap ); drawingCanvas.drawBitmap(myBitmap, 0, 0, paint); imageView.setImageBitmap(blackAndWhiteBitmap); imageView.setDrawingCacheEnabled(false); flagColor= false; It code is for convert the ImageView to gris scala , and the question is if exist some way from return the image in your correct colors I can make the copy from Bitmap with these code before the converting the image to gris scala and after make the restore bitmap = myBitmap.copy(Bitmap.Config.ARGB_8888, true); but if the image is reduced or enlarged, and want restored to correct color, the image lose these changes. Exist some way from that with the copy prior from the Image, can captured your colors and after set these colors to new image changed Thanks David -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en