PDA

View Full Version : streching




jagatnibas
Sep 10, 2008, 08:56 AM
Hi all,

Can i stretch an image somehow ? i want to drag an image and rotate to by putting the other end in center ?

any helps are welcome

thanks and regards
Jagat



jagatnibas
Sep 15, 2008, 03:28 AM
nobody of the 53 visitors ever tried it :) ?

kainjow
Sep 15, 2008, 03:38 AM
It depends how you're displaying the image. If you're using CGContextDrawImage() then it'll draw the image stretched to the rect you pass. If you're using a UIImageView then you can change the view's contentMode to UIViewContentModeScaleToFill I believe.