Image Processing

Discussion in 'Mac Programming' started by cblackburn, Dec 5, 2006.

  1. cblackburn macrumors regular

    Jul 5, 2005
    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?


  2. HiRez macrumors 603


    Jan 6, 2004
    Western US
    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.

Share This Page