title: How to draw a large image in small size with new context?
body: <p>![enter image description here][1]By using the following code, I am able to draw a large image in small form, But new one image have their superview context or in other other word new image show in centre of new <code>image</code> but have a large white background to cover up large imageSize.</p>
  
  <p>So, Actual image size is same as large image but I want to remove the extra white space.</p>
  
  <pre><code>  UIGraphicsBeginImageContextWithOptions(largeImage.size, NO, 0);
      CGContextRef context = UIGraphicsGetCurrentContext();
      [[UIColor clearColor] setFill];
      CGContextSetLineWidth(context, 4.0);
      CGContextSetStrokeColorWithColor(context,
                                       [UIColor clearColor].CGColor);
      CGRect rectangle = CGRectMake((largeImage.size.width-80)/2, (largeImage.size.height-60)/2, 60, 80);
      CGContextAddEllipseInRect(context, rectangle);
      CGContextStrokePath(context);
      [largeImage drawInRect:rectangle];
  
      UIImage *smallSizeImage = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
  </code></pre>
  
  <p>Finally , I am getting <code>smallSizeimage</code> with a lot of white background. I want to change their white background without loosing the image quality.
  Please guide me..</p>