flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From H├ęctor A <neverbi...@gmail.com>
Subject Re: Android Material Design
Date Fri, 09 Jan 2015 19:28:12 GMT
You can use BitmapData.applyFilter, although it requires for you to draw
the source object first, or at least just the base shape, so on circular
or rectangular buttons and the like you can save some time (or maybe it
doesn't even matter for BitmapData.draw how deep your source object's
display list is? never tested it nor seen any related benchmark), also, you
don't need to redraw the source object if it doesn't change significantly.

However, the main problem I see is how using some Bitmap is going to affect
the UIComponent size, or maybe it won't be a problem. I mean, your button
may be 50x50, but you'll bitmap with the drop shadow effect may require a
60x60 space, and the developer shouldn't know about that extra space taken
by the effect (although it may come useful under some circumstances).

On Fri, Jan 9, 2015 at 8:11 PM, quick6black <anash13@gmail.com> wrote:

> Hi Neverbirth was unaware of that, is there a better way to accomplish a
> drop
> shadow that you are aware of?
>
> thanks
>
>
>
>
>
> --
> View this message in context:
> http://apache-flex-development.2333347.n4.nabble.com/Android-Material-Design-tp44248p44254.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message