Quote:
Originally Posted by kev1953
|
Yes, and you can use a graphics context to create a new image that is a crop of the original image. To do that, create a new context that is the size of the portion that you want. The point 0,0 in that context will be in the upper left corner. Then create a CGRect that places your image with it's upper left corner offset so that the part you want lands inside your new context's bounds rectangle, and use the UIImage method drawInRect to draw your image in that CGRect.
It might help to draw it out on graph paper. Draw a rectangle that's the bounds of the context, and mark the upper left as 0,0. Then trace out a larger rectangle that lays over the context's rectangle.