×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jan 2014
    Posts
    145

    How to convert CustomEffectBase to IFilter?

    This is what I'm trying to do..

    Queue<IFilter> components = new Queue<IFilter>();

    components.Enqueue((new BorderEffect(IImageProvider source) as IFilter));

    return components;
    BorderEffect is my CustomEffectBase which takes 1 argument that is Image Source, but I'm getting this error
    "IImageProvider" is a type and used like a variable.

    How to convert CustomEffectBase to IFilter?
    Clipr: Best ever image clipping tool and first of it's kind in windows phone!!

    Download here
    http://www.windowsphone.com/s?appid=d533f018-238a-429c-affc-55a46c2dc69f

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: How to convert CustomEffectBase to IFilter?

    While it is a bit non-trivial to find, http://developer.nokia.com/resources...d-effects.html describes the fundamental difference between a Filter and an Effect. As Effect is the more restrictive of the two (requiring access to the entire image), I do not think there is trivial wrapping for it into a Filter (which can work on image parts).
    Last edited by wizard_hu_; 2014-05-26 at 10:16. Reason: "I do not thing", OMG

  3. #3
    Regular Contributor
    Join Date
    Jan 2014
    Posts
    145

    Re: How to convert CustomEffectBase to IFilter?

    Thanks for the information wizard_hu_
    Will work around it.
    Clipr: Best ever image clipping tool and first of it's kind in windows phone!!

    Download here
    http://www.windowsphone.com/s?appid=d533f018-238a-429c-affc-55a46c2dc69f

  4. #4
    Registered User
    Join Date
    May 2014
    Posts
    9

    Re: How to convert CustomEffectBase to IFilter?

    Check out the 1.2 beta, which includes a mechanism for making custom filters. You inherit from CustomFilterBase instead of CustomEffectBase, and some setup is different but it should generally be familiar.

  5. #5
    Regular Contributor
    Join Date
    Jan 2014
    Posts
    145

    Re: How to convert CustomEffectBase to IFilter?

    What is 1.2 beta? Can you provide links please?
    Clipr: Best ever image clipping tool and first of it's kind in windows phone!!

    Download here
    http://www.windowsphone.com/s?appid=d533f018-238a-429c-affc-55a46c2dc69f

  6. #6
    Registered User
    Join Date
    May 2014
    Posts
    9

    Re: How to convert CustomEffectBase to IFilter?

    http://www.nuget.org/packages/NokiaImagingSDK/

    It's available via nuget, but you have to choose to include prereleases to see it.

  7. #7
    Regular Contributor
    Join Date
    Jan 2014
    Posts
    145

    Re: How to convert CustomEffectBase to IFilter?

    Haha I thought you were referring to some app v1.2 beta. Eventually I got what you said..

    http://developer.nokia.com/resources...d-effects.html

    Thanks for the suggestion
    Clipr: Best ever image clipping tool and first of it's kind in windows phone!!

    Download here
    http://www.windowsphone.com/s?appid=d533f018-238a-429c-affc-55a46c2dc69f

Similar Threads

  1. Convert wav to MP3
    By not2b in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2011-01-06, 11:03
  2. To convert lit to int
    By pavan in forum Symbian
    Replies: 1
    Last Post: 2006-10-11, 13:27
  3. How to convert .pdb to .sis???????????????
    By style_cool in forum Symbian
    Replies: 4
    Last Post: 2006-07-12, 17:52
  4. Convert to mp4
    By panosterz in forum Symbian
    Replies: 0
    Last Post: 2003-06-27, 12:29
  5. Convert to mp4
    By panosterz in forum Symbian
    Replies: 0
    Last Post: 2003-06-25, 17:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×