0

Here is what I am planning:

  • user taps on a button.
  • a uiimage picker view controller displays
  • user selects an image
  • a thumbnail view of selected image should be saved in my application. ( like ui picker view has after selecting albums, there is thumbnail view )

Up to three points I can do. But I don't know about creating thumbnail view of selected image.

halfer
  • 19,824
  • 17
  • 99
  • 186
sagarkothari
  • 24,520
  • 50
  • 165
  • 235

3 Answers3

3

Undocumented UIImage resizing.

Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
3

Make a small bitmap the size of your thumbnail. Draw your picture into it. Take the bitmap and turn it into a UIImage and save it.

Here is an implementation:

iPhone - Multiple CGBitmapContextCreateImage Calls - ObjectAlloc climbing

Community
  • 1
  • 1
mahboudz
  • 39,196
  • 16
  • 97
  • 124
2

http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/

This is a fantastic read for image manipulation.

danfelabs
  • 1,873
  • 1
  • 18
  • 23