开发者

Generating Source Info For Flex BitmapData

Instead of populating the BitmapData class from an IMAGE. I would like to (within Actionscript) GENERATE some new BitmapData by capturing the Bitmap representing say, a TextArea component on the stage.

In other words, sort of take a "screen capture" or "screenshot" of one of the compo开发者_开发知识库nents, and convert that into an image. Am I silly to even wonder if such a thing is feasible? Can an Air/Flex app "look at itself" in this way? Can it turn a datagrid or a canvas or a textinput into the corresponding image AS IF via screen capture?

Even a hint in the right direction would be appreciated,

Thanks In Advance.


http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/

If you want to take the screenshot of particular component, then you need to use the BitMapData class and calculate pixel by pixel by drawing it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜