I am trying to make an imageView circular, with a white "border", then a light grey border around that.
But whenever I round the image, it is not smooth at all - it's all pixelated around the sides... Does anyone know how I can make it smoother?
This is what I currently have:
var profile_pic = Titanium.UI.createImageView({ width:100, height:100, backgroundImage: 'http://img.modelbase.ch/thumb/50/gallery/3353/49744.jpg', gallerytype: 'gallery', borderColor: '#fff', borderRadius: 50, borderWidth: 3 }); var profile_outer = Titanium.UI.createView({ width: 102, height: 102, backgroundColor: '#fff', borderColor: '#ddd', borderRadius: 52, borderWidth: 2, }) profile_outer.add(profile_pic); win.add(profile_outer);Thanks
2 Answers
Try to use image property instead of backgroundimage. As backgroundImage will be attached to the View itself but the image property will be free from any view transformation. try it..
Have you tried a higher resolution source? Your source image is 50x50. You scale it to 100x100.
Your Answer
Think you can help? Login to answer this question!