Titanium: Clarity Missing toImage () Conversion (Android & ios)
I am developing Android and iOS apps with Titanium Appcelerator. I converted my view to an image using the method toImage()
, but looking at the image it looks a little fuzzy and unclear. What should I do to get the best image quality?
if (Ti.Platform.osname == "android") {
var _pic = myView.toImage().media;
} else {
var _pic = myView.toImage();
}
+3
source to share
1 answer
On iOS devices, the toImage method receives an additional parameter (the second parameter - the first is the callback) for honScaleFactor.
For more information: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.View-method-toImage
+3
source to share