How do I add effects to a NSImage or an ImageView

Discussion in 'Mac Programming' started by Trisect Develop, Jul 4, 2013.

  1. macrumors newbie

    Joined:
    Jun 28, 2013
    Location:
    Denmark
    #1
    In my application I need to put some effects on either a NSImage or an ImageView. I have been searching Google and this forum but I have not been able to find anything.

    Can some one help or point me to a webpage that tells about it?
     
  2. macrumors 603

    Joined:
    Aug 9, 2009
    #2
    Please be more specific than "some effects". Tell us exactly which effect(s) you want.

    http://www.mikeash.com/getting_answers.html


    Exactly what searches have you tried? Be specific.

    When I google nsimage effects, the top hit is this:
    http://www.cocoabuilder.com/archive/cocoa/238807-blur-nsimage.html

    It contains example code using a CIFilter. Since CIFilter is the principal effects generator in Core Image, one should be able to use any single-image filter other than the "CIGaussianBlur" of the example without changing anything else in that code.

    Here's a list of built-in CIFilter types:
    https://developer.apple.com/library...asses/CIFilter_Class/Reference/Reference.html

    If you've tried the example code and it fails, then please state that and post any error message, or describe the reason for failure.
     
  3. thread starter macrumors newbie

    Joined:
    Jun 28, 2013
    Location:
    Denmark
    #3
    Thanks chown33 I did find that blur method my self.

    I looking for effects like rounded corners, border, grayscale, flip, mirror, sharpen and so on. All the effect I can get.
     

Share This Page