I created CGBitmapContextfrom 256 x 256, and I have CGImageRefone that I want to use in this context. My goal is to crop the image (and end up creating fragments of the image), but if I use it CGContextDrawImage, Core Graphics scales the image to fit the context.
So, the question is how to make sure that CGBitmapContextonly part is embedded in (without scaling) CGImageRef?
source
share