Flex: Render an unrealized UIComponent to BitmapData?

后端 未结 4 1458
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 12:36

What is the best way to render to a UIComponent which hasn\'t been added to the stage? (I\'m using UIComponents as renderers for objects, and want to render ne

4条回答
  •  孤街浪徒
    2020-12-15 13:36

    I'm pretty sure you can use the draw() method in BitmapData without having your component on the DisplayList.

    For example is use it when I need to modify images I load with the Loader Class. In the init handler I create a BitmapData instance and draw the Bitmap from the loadInfo.content property, then copyPixels() or whatever I need to modify the loaded image

提交回复
热议问题