Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

AIR PNG Encoder from Javascript.

$
0
0

Hi there,

 

  How can I encode a Bitmap from AIR using the Javascript AIRAliases.js

 

////

 

    var captureFile = air.File.applicationStorageDirectory.resolvePath( 'c:\capture.png' );

 

    var capture = new air.BitmapData( window.htmlLoader.stage.stageWidth,window.htmlLoader.stage.stageHeight );
    capture.draw( window.htmlLoader );
   
    var image = new air.Bitmap(capture,"NEVER",false);
       
    var png = ???

 

////


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>