Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cblackburn

macrumors regular
Original poster
Jul 5, 2005
158
0
London, UK
Hi all,

I need to write a section of an app where the user can choose two images and they are scaled appropriately and placed ontop of each other. The user can then drag one of the images, (which is designated by the user), over the other one until perfect. Then I would like the program to be able to save a final of the two superimposed over each other to disk for later review.

What's the best technology to use for this? Core Image, Raw OpenGL, or should I just find a way to do it with a bunch of NSImages?

Thanks

Chris
 
Sounds like something that should be doable with NSImages, if you're using Cocoa anyway. It has all the scaling/compositing stuff built in and it's easy to use. But if you need high performance or live compositing of many layers then yeah, you might look at CI or OpenGL. If you have the Hillegass book Cocoa Programming in Mac OS X, have a look at that. He has some sample code that does image manipulations, compositing, and dragging images with the mouse.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.