Table of Contents
|
Creating your UIThere are several ways to create a UI for your filter. SimpleThe Simple UI is the recommended way to create your filter. Since most filters have only a few parameters and those parameters are typically numbers, booleans, or a limited list of options, the Simple UI allows you to quickly describe those parameters and lets the host take care of all of the complicated UI logic. As an added bonus, your filter will automatically get the latest and greatest UI updates without needing any more work on your part.
A Simple UI is defined in a
See the Simple UI Reference for more information about all of the available directives. WinForms
If the Simple UI isn't enough, you can create a custom UI using WinForms. You can utilize some of the same Simple UI controls (such as
A WinForms UI is part of your DLL. Create a user control that implements
You can also explicitly specify the class name instead of Fully Custom
By hiding the preview and channel picker, you have nearly unlimited customization potential for your form and can utilize the None
If your filter has no configurable parameters, you can set This is not the same thing as Silent Mode (which all extensions must support) but works similarly in the sense that no UI is presented to the user. Standard UI FeaturesThe extension host provides standard features that can be turned on or off for your particular filter depending on relevance. Channel picker
The channel picker allows the user to specify red, green, blue, and (optionally) alpha channels to apply the filter to.
These automatically set the
You can disable the entire channel picker by setting Reset button
The Reset button will reset all parameters to the default values you specify in your code. This is not always appropriate for all filters
so you can set PreviewThe preview will update in real time as you adjust filter parameters (depending on the user's setting). You can either preview a zoomed-out version of the image or a panned actual-size clipping.
A fixed preview prevents the user from panning around the image and only displays the whole image. This can be useful for filters
that render on top of the entire image or where a clipped preview cannot be easily rendered. To force a fixed preview, set
You can also completely disable the preview, freeing up space for a fully custom UI, by setting |