How to resize a image in Objective - C to a smaller version of it?
<p>I have three images(.png format). I combine three images and create a speech bubble using drawInRect() for images and  I specify the rectangle in which each single image is drawn.</p>

<p>I have created resizable images for each of the images using resizableImageWithCapInsets:UIEdgeInsetsMake.</p>

<p>My original images are quite big. and hence, when I add text which consists of only few characters, the speech bubble that is drawn looks bigger for the text.</p>

<p>Can anyone tell me how to shrink the images such a way that it surrounds the text appropriately.</p>

<p>My speech bubble has a top image and its original height is 17pixels and hence if I use drawInRect() with a rectangle below that height, part of the image gets clipped, so is the case with the bottom image.</p>

<p>Any help is appreciated. thank you.</p>
