Re: cutting an image into multiple images

2008-06-21 Thread Ken Thomases
On Jun 21, 2008, at 8:41 AM, Dharmendra wrote: I am trying to get a user-defined image in specific format (m x nm) and want to generate an array with count n containing m x m sized images. I have written the following code, but would like to know if there is better way to do the same: Ra

Re: cutting an image into multiple images

2008-06-21 Thread douglas a. welton
Depending on what you are going to do with the "sub-images" once you create them, you might want to consider using a CIImage with the CICrop core image filter. On Jun 21, 2008, at 9:41 AM, Dharmendra wrote: Hi, I am trying to get a user-defined image in specific format (m x nm) and want t

cutting an image into multiple images

2008-06-21 Thread Dharmendra
Hi, I am trying to get a user-defined image in specific format (m x nm) and want to generate an array with count n containing m x m sized images. I have written the following code, but would like to know if there is better way to do the same: m=...; NSImage *userImage=[[NSImage alloc] initWithCon