Iphone app: Resize a png by getting Height and Width from user

Discussion in 'iOS Programming' started by gbf.sara, Jun 6, 2010.

  1. gbf.sara macrumors newbie

    May 30, 2010
    Ive an image with particular resolution appearing on Iphone screen. I need to resize that image by getting info. as an alert from user(Width and height). Cud anyone help me with block of code for this????
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Wait! You want us to write your code? Show us the money!

    What you want to do is create a graphics context of the size you want, draw the image into that at the correct size then extract the image from it. There are functions in the SDK for all of this. Go read the documentation.

Share This Page