tags:

views:

53

answers:

2

Hi,

How can I save a stretched image?

I have a small(50 X 50) image, that I have stretched while displaying it on a UIImageView (by choosing scaletofit mode.) Now I need to fetch & save that stretched image. I have tried by using UIImageView's image property, but it gives me original image not that stretched image.

So, do you have any idea how to solve this problem? If then please help me or guide me or at-least give me a hint.

Hoping for your reply.........

Thanks

A: 

You have to create an image by copying the bit map of the view's CGContext (core graphic context). This has been asked on stackoverflow before but I can't find the answer right now.

TechZen
A: 
yonel