Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

How to flip or mirror or horizontally scale an image

$
0
0

No animation involved. Works on Android, latest SDKs.

var aMatrix = Ti.UI.create2DMatrix();
 
var anImageView = Ti.UI.createImageView({
   image:foo.jpg,
   width:100+"%",
   left:0,
   top:0,
   transform:aMatrix.scale(-1, 1)
});

Viewing all articles
Browse latest Browse all 7655


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