locked
Bypass filters in Filter Pipeline.. RRS feed

  • Question

  • Hi!

    Lets say I have 4 filters in my filter pipeline.. Is it possible to bypass filters if I dont need to use them?

     

    For example

    Filter 1 is Watermark

    Filter 2 is scaling

    Filter 3 is Booklet

    Filter 4 is  Rendering

     

    Now if user did not select any of first 3 feature..I dont want to  waste time calling GetXPSPart() etc..

     

    So my idea is I want to check in the begining which features are selected and which filters I will need.. Rest all filters I want to bypass..

     

    1. Can I increase my performance by this way?

    2. If yes ..How can I do that?

    3. Which interface is better in this scenerio? Stream or XPS?

     

    Pls. let me know

     

    Thanks

    Monday, May 7, 2007 8:45 AM

Answers

  • Filters cannot opt out of the pipeline. It is not expensive to have a set of consecutive XPS or stream filters. Performance if affected by the number of transitions between stream and XPS. For instance: XPS filter, stream filter, XPS filter is expensive compared to 3 XPS or stream filters.
    Monday, June 4, 2007 6:49 PM