get a bigger size of image.
Hi,
I had create an imageView with 90 x 90 on screen, and use imageView.toImage() to save it to servers.
I found that the size of image has change to 90 x 90, but I need original size. what can I do?
P.S. I tried to create a hidden imageView, but no luck the image has turn to white… any idea?
var imageView = Titanium.UI.createImageView({ height:90, width:90, top:5, left:200' });
var tmpimage = imageView.toImage();
formdata.image = tmpimage;
4 Answers
-
Accepted Answer
Where is the actual image you are trying to send? Your imageView does not have an image property?
If you want to send the original image to the server then use
Ti.Filesystem
toImage()
will always take the attributes of the view it is converting, which is useful for sending smaller images over the network. -
anyone help ??
-
Where is the actual image you are trying to send? Your imageView does not have an image property?
If you want to send the original image to the server then use
Ti.Filesystem
toImage()
will always take the attributes of the view it is converting, which is useful for sending smaller images over the network. -
Where is the actual image you are trying to send? Your imageView does not have an image property?
If you want to send the original image to the server then use
Ti.Filesystem
toImage()
will always take the attributes of the view it is converting, which is useful for sending smaller images over the network.