you can't resize (scale) an image this way - you need to make a new
image. Have a look here:

http://www.fastchicken.co.nz/2011/03/28/scaling-and-rotating-an-image-in-monotouch/

Should do the job for you, tho the rotation bit might be overkill :)


2011/5/15 Jesús Bosch Ayguadé <[email protected]>:
> Hi,
> I'm trying to resize an image inside a tableview programmatically, this way:
> cell.ImageView.Image.Size = new System.Drawing.SizeF(24.0f, 24.0f);
>
> And it results in a strange objective-C exception:
> UIImage setSize: unrecognized selector sent to instance
>
> Someone has any idea why does this happen?
> Thanks!
>
> Regards,
>
> Jesús Bosch Ayguadé
> http://www.plungeinteractive.com
> http://www.facebook.com/plungeinteractive
>
>
>
>
>
>
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/ | http://www.flickr.com/photos/nicwise

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to