After transferring a large image from a REST endpoint, I need to divide the image into a number of smaller image tiles.
The initial image is (for instance) 1024×1024, stored in an NSData; I need to create sub-image of size 256×256 (In this case, there will be 16 sub-images).
How would this be done? (I haven’t found any articles which even come close, but I assume it must be possible since most image editing software supports image cropping.)
Thanks.
1 Answer