Bitmap smoothing


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var loader:Loader = new Loader() ;
  2. loader.load(new URLRequest("chemin_vers_image.jpg")) ;
  3. loader.contentLoaderInfo.addEventListener(Event.COMPLETE, smooth) ;
  4.  
  5. function smooth(e:Event):void
  6. {
  7. var bmp:Bitmap = loader.content as Bitmap ;
  8. bmp.smoothing = true ;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.