I wanted to load a image as CIImage
and draw a rectangle on a specific region of that image and save the result image into a directory. Please help me.
Asked
Active
Viewed 1,240 times
2

Rajesh Loganathan
- 11,129
- 4
- 78
- 90

permac704518
- 43
- 2
-
2Why do you want to do this as a `CIImage`? – Lily Ballard Feb 02 '12 at 00:15
-
I am working on Mac OS application, so I found that I can load a image using CIImage. Thata why, Anyway, How do I do that – permac704518 Feb 05 '12 at 00:05
-
I think you're extremely mistaken. `CIImage` is for working with `CoreImage`. It does image processing, but it's not the right tool to simply load an image, draw something on top of it, and save the image back out again. On the desktop you'll probably want to use `NSImage`, on iOS you'll want `UIImage`, or in both places you could drop down to CoreGraphics and use `CGImage`. – Lily Ballard Feb 05 '12 at 02:20
-
Thanks Kevin. Will you be able to provide an example. (objective-C code or a link). Thanks again – permac704518 Feb 06 '12 at 23:37
-
If it's OSX, this might work (didn't try): http://www.cocoabuilder.com/archive/cocoa/60108-drawing-into-an-nsimage.html – Ben Flynn Jun 05 '13 at 16:52