streching

Discussion in 'iOS Programming' started by jagatnibas, Sep 10, 2008.

  1. jagatnibas macrumors regular

    Joined:
    Jul 28, 2008
    #1
    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
     
  2. jagatnibas thread starter macrumors regular

    Joined:
    Jul 28, 2008
    #2
    strange

    nobody of the 53 visitors ever tried it :) ?
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    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.
     

Share This Page