Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Invalid dimension value (inf) requested. Making the dimension undefined instead.

$
0
0

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


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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