title: iPhone:-simplest way to crop image of desired shape and size
body: <p>i am trying to crop image according to my desire....for my cinemagram type app.....and use it in my application</p>
  
  <p>i have tried  a lot of options but none of tham is...usefull for me 
  i read answers on stack over flow but of no use </p>
  
  <p>plzz help me out</p>
  
  <pre><code>image = [UIImage imageNamed:@"images2.jpg"];
  imageView = [[UIImageView alloc] initWithImage:image];
  
  CGSize size = [image size];
  
  [imageView setFrame:CGRectMake(0, 0, size.width, size.height)];
  [[self view] addSubview:imageView];
  [imageView release];    
  </code></pre>
  
  <p>thanks</p>