1

I am working with a menu and I need to create images which will fit in the 'cell'. Whenever I scale my image, it looks horrible!

Still broken

Code:

   CGSize newSize = CGSizeMake(22, 22);  //whaterver size
        UIGraphicsBeginImageContext(newSize);
    [cimg drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
  UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
         UIGraphicsEndImageContext();
J. Steen
  • 15,470
  • 15
  • 56
  • 63
Keaton
  • 127
  • 14

1 Answers1

1

Try using another one of the techniques for resizing mentioned here.

If that does not satisfy your need, you might want to try looking at this question's answer, this (very useful) MGImageUtilities' category, or this library, to scale an image without losing quality.

Community
  • 1
  • 1
bibo bode
  • 1,150
  • 1
  • 10
  • 17