开发者

How to export image from Air app directly into a powerpoint slide programmatically

Apologies if this has been answered before or if it's too obvious - pointers are greatly appreciated if this is the case.

What I'm trying to do: 1) have a way to sa开发者_开发知识库ve / copy screenshot from an Air app 2) automatically paste such screenshot into a new powerpoint slide in the current presentation

I have part 1 down but have no idea on how to do part 2 - I have very little experience with programming around MS apps.

thank you.

f


You can just read the screen into a bitmap, then encode the bitmap into a JPG or PNG, write the encoded image to a temporary location and then copy the encoded image file location to the system clipboard. That will then allow you to paste it in PowerPoint. You can see some example code that does the Clipboard stuff here:
http://code.google.com/p/air-quick-fix/source/browse/trunk/AIRQuickFixClient/src/QuickFix.mxml?r=7

Check out the documentation on the Clipboard class here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/Clipboard.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜