Thank you very much.
I used the following code to get it filtered and looking nice even
after rotating it with non 90 multiple degrees and scaling it.

In constructor
==========

        PaintFlagsDrawFilter setfil = new PaintFlagsDrawFilter(0,
Paint.FILTER_BITMAP_FLAG);
        PaintFlagsDrawFilter remfil = new PaintFlagsDrawFilter
(Paint.FILTER_BITMAP_FLAG, 0);

when drawing
==========

canvas.setDrawFilter(setfil);

----->here i wrote the bitmap draw code on canvas<-----

canvas.setDrawFilter(remfil);

On Mar 3, 7:29 pm, Mike Reed <[email protected]> wrote:
> antialiaswill smooth the edges (when drawn at a non-multiple-of-90-degrees)
> filtering will smooth the sampled colors within the bitmap
>
>
>
>
>
> On Tue, Mar 3, 2009 at 7:59 AM, quakeboy <[email protected]> wrote:
>
> > How to draw antialiased bitmap along with transformation matrices.. I
> > use matrix to rotate and scale a bitmap and then draw it using
> > canvas.drawBitmap
>
> > But the bitmap after the transformation looks ugly and aliased. I
> > tried using the paint.antialias(true) and passing it to drawBitmap
> > function. It doesn't seem to work.
>
> > Should I set anymore parameters ??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to