Use filters for Text in GPU mode AIR mobile

后端 未结 3 1291
深忆病人
深忆病人 2021-01-13 16:31

Unfortunately the filters do not work (drop shadow, glow) in GPU mode. I\'m looking for an opportunity to use these effects to text in this mode. I will welcome any advice.<

3条回答
  •  梦毁少年i
    2021-01-13 17:03

    The basic idea is to apply the filters as normal and then draw the display object to a bitmapdata and add the bitmap to the stage. See http://forums.adobe.com/message/3934192 for an example.

    If the text that you are applying this to is static it should be easy enough to do, but if you want to apply this dynamic text (for example, a score counter that will change frequently, or text that is user-editable) I imagine it may start to get annoying, but I don't know of any other solution.

提交回复
热议问题