The animations don't do anything to the bitmap, per se.  For every
"tick" of the animation, the method getTransformation is called on
each Animation so that it can return a Transformation that describes
an affine transformation and an alpha value.  If you want to do more
than those two things you can use the getTransformation method as a
hook to do other things during the animation, such as change the
background colour of a View.  If you want something more complex than
that, such as blurring the image (which is not an affine
transformation), you'll need to start looking at Canvas and Paint and
overriding the onDraw method.

On Sep 1, 11:08 pm, LemonDev <[email protected]> wrote:
> thanks. you mean i can't use the Animation object anymore, and i
> should do the "blur" in my code .
> but the problem is i don't use the "blur" separately: i want  to mix
> the blur , scale and alpha , so i need to code the "scale"
> and "alpha" myself ?
>    the android use Skia to draw bitmap, so weather i can modify the
> framework to invoke a blurfilter in skia? it seems a big workload, any
> advice is appreciated !
>
> On 9月2日, 上午10时29分, Dianne Hackborn <[email protected]> wrote:
>
>
>
> > You'll need to take a snapshot of the thing you are blurring, perform a blur
> > operation on that bitmap (which you will need to write yourself), and then
> > you can draw the bitmap.
>
> > On Tue, Sep 1, 2009 at 7:14 PM, LemonDev <[email protected]> wrote:
>
> > >    as we known we can use predefined animations in android
> > > developing, they are : alpha animation, scale animation, rotate
> > > animation, translate animation and skew animation(extend animation
> > > using Matrix's setSkew function).  though ,we can implement other
> > > effect using the Matrix, but it can only realize some shape
> > > transformations(i think the real color pixels don't changed).
> > >    If i want to make some effects like "blur" , it can't work,because
> > > animation only give the transformation matrix . we can't not
> > > manipulate the color pixels.
> > >    Please do me a favor, how can i realize effect like "blur" ?
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
--~--~---------~--~----~------------~-------~--~----~
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