It found it ! it works fine with setFilterBitmap(true); The entire code : Matrix matrix = new Matrix (); Matrix.setRotate (rotation, layer.getWidth ()/2, layer.getHeight ()/ 2); Paint mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); mPaint.setDither(true); mPaint.setFilterBitmap(true); canvas.drawBitmap (layer, matrix, mPaint);
On 19 nov, 13:46, Dany Poplawec <[email protected]> wrote: > Hello, > My program stacks several images, with a certain angle of rotation. > The code works, but the image loses of the quality in spite of the > dithering during the rotation (except on right angles 90, 180, 270!). > The image is a black circle and there are peaks which appear with the > rotation which are not visible with the same rotation on gimp or > Photoshop. > I uses the matrix method, but i also tried with the canvas.rotate > method, same result. > > Thank you for your help ! > > Here is my code: > > Matrix matrix = new Matrix (); > Matrix.setRotate (rotation, layer.getWidth ()/2, layer.getHeight ()/ > 2); > This.canvas.drawBitmap (layer, matrix, null); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

