Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 4, 2013, 03:14 PM   #1
Trisect Develop
macrumors newbie
 
Join Date: Jun 2013
Location: Denmark
How do I add effects to a NSImage or an ImageView

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?
Trisect Develop is offline   0 Reply With Quote
Old Jul 4, 2013, 05:53 PM   #2
chown33
macrumors 603
 
Join Date: Aug 2009
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/...r-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/...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.
chown33 is offline   0 Reply With Quote
Old Jul 8, 2013, 02:54 AM   #3
Trisect Develop
Thread Starter
macrumors newbie
 
Join Date: Jun 2013
Location: Denmark
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.
Trisect Develop is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Caption Distraction - Add word balloons, effects, stickers, and filters to your photo CapDistract iPhone and iPod touch Apps 2 Jul 28, 2013 08:30 PM
Funny behavior of ImageView Trisect Develop Mac Programming 3 Jul 4, 2013 01:05 PM
String drawInRect NSImage problem larswik Mac Programming 2 Dec 16, 2012 03:32 PM
ImageView Help camitampa iPhone/iPad Programming 6 Sep 17, 2012 07:45 PM
How to transform this NSImage code for use in iOS hellomoto4 iPhone/iPad Programming 5 Jun 24, 2012 10:18 AM

Forum Jump

All times are GMT -5. The time now is 12:31 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC