Hello,
I try to generate an image-blob from a view that contains image-views. Here is a part of my code
var mergeview = Ti.UI.createView({ backgroundColor: 'transparent', width: 612, height:792, }); var view = Ti.UI.createImageView({ image: 'images/myimage.png', width: 200, height: 200, }); mergeview.add(view);
var blob = mergeview.toImage();The App crashes with this error:
Invalid dimension value (inf) requested. Making the dimension undefined instead.
The error only occurs in a real device, tested on iphone4/iphone5. On the iOS-Simulator there is no error! I am testing with the latest stable Xcode, iOS-SDK and TitaniumSDK.
I would be very happy if someone could help me! :-)
Cheers, Fab