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

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

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 :

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 is offline   0 Reply With Quote

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Photoshop Elements 9: how to change settings for filters/effects Argelius Digital Photography 3 Dec 6, 2011 03:24 PM
Camera Plus Pro v4.0 now with Live Filters for Photos and Videos GlobalDelight iPhone and iPod touch Apps 1 Oct 3, 2011 08:31 PM
Applying Filter effects mahaboob Mac Programming 0 Jun 25, 2009 03:47 AM
FCP and Old Home Movies - Filter/Effects Help VanMac Digital Video 5 Dec 6, 2008 05:18 AM
(Solved) Filter/effect to replicate a megaphone PkennethV Digital Audio 3 Nov 4, 2008 07:02 PM

All times are GMT -5. The time now is 02:29 AM.

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

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