Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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;
— asked November 10th 2010 by Bernard Tai
  • image
  • imageview
  • iphone
  • resize
0 Comments

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.

    — answered November 11th 2010 by Roger Chapman
    permalink
    0 Comments
  • anyone help ??

    — answered November 11th 2010 by Bernard Tai
    permalink
    0 Comments
  • 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.

    — answered November 11th 2010 by Roger Chapman
    permalink
    0 Comments
  • 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.

    — answered November 11th 2010 by Roger Chapman
    permalink
    1 Comment
    • Sorry for the multiple answers (site was throwing an error, and I refreshed 5 times!) :(

      — commented November 11th 2010 by Roger Chapman
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.