• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Applying filter effects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applying filter effects


  • Subject: Applying filter effects
  • From: Mahaboob <email@hidden>
  • Date: Thu, 25 Jun 2009 18:21:17 +0530
  • Thread-topic: Applying filter effects

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 :

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.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Design for custom tableviewcell button action
  • Next by Date: Re: icns to Icon\r
  • Previous by thread: Re: Search in ABPeoplePickerView not working
  • Next by thread: NSArrayController's add: swaps entire content array when array is accessed via keypath
  • Index(es):
    • Date
    • Thread