Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 25, 2009, 07:55 AM   #1
mahaboob
macrumors member
 
Join Date: Jul 2008
Filter effect

Hi,
I'm applying filter effects to my graphics in drawRect: method.
I need to draw the selection handles for graphics after applying filters.
is it possible to apply the filters from slider action methods of filters?

Now I'm using the code in drawRect: method is :

Code:
NSRect _tFr = [self bounds];
           
            CIContext *mCIContext;
            
            mCIContext =  [CIContext contextWithCGContext: [[NSGraphicsContext currentContext] graphicsPort] options: nil];
            
            CIImage *iImage = [self CIImageofPath:_tpath inView:view],
                
                *rImage = [self CIImageResultForEffectStack:iImage];                 
          
            [mCIContext drawImage:rImage  atPoint:CGPointMake(_tFr.origin.x,_tFr.origin.y) fromRect:[rImage extent]];
In the slider action method I'm getting the result graphics by applying the same method.

Now, how can I draw this graphic in to my canvas?

Thanking you in advance
Mahaboob.
mahaboob 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
Screen filter/night screen filter jr866gooner iPhone and iPod touch Apps 3 Feb 2, 2014 08:37 AM
How did they do this effect? matteusclement Digital Video 11 Dec 8, 2013 08:08 AM
need help with an effect jfreak623 Digital Video 3 Oct 18, 2013 03:57 PM
how to do this effect? matteusclement Digital Video 5 Jan 31, 2013 07:05 PM
How do I do this effect? matteusclement Digital Video 2 Oct 3, 2012 02:36 PM

Forum Jump

All times are GMT -5. The time now is 07:36 AM.

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

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