NSString *imagePath = [[NSBundlemainBundle] pathForResource:@”test” ofType:@”png”];
UIImage *image =[[UIImage alloc]initWithContentsOfFile:imagePath];
UIImage *newImage = [imagetransformWidth:80.0f height:240.0f];
[image release];
UIImageView *imageView = [[UIImageViewalloc] initWithImage:newImage];
[self.view addSubView:imageView];
[imageView release];